Skip to content

Commit

Permalink
feat: issue #267
Browse files Browse the repository at this point in the history
* fix: effects color
  • Loading branch information
IWareQ committed Jun 23, 2024
1 parent be93deb commit a2930bf
Show file tree
Hide file tree
Showing 24 changed files with 132 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Allay Project 2023/10/27
*
* @author daoge_cmd
* @see <a href="https://minecraft.wiki/w/Effect#Effect_list">Effect list</a>
*/
@Getter
public abstract class AbstractEffectType implements EffectType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectAbsorptionType extends AbstractEffectType {
public static final EffectAbsorptionType ABSORPTION_TYPE = new EffectAbsorptionType();

private EffectAbsorptionType() {
super(22, new Identifier("minecraft:absorption"), new Color(36, 107, 251));
super(22, new Identifier("minecraft:absorption"), new Color(37, 82, 165));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectBlindnessType extends AbstractEffectType {
public static final EffectBlindnessType BLINDNESS_TYPE = new EffectBlindnessType();

private EffectBlindnessType() {
super(15, new Identifier("minecraft:blindness"), new Color(191, 192, 192), true);
super(15, new Identifier("minecraft:blindness"), new Color(31, 31, 35), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectFireResistanceType extends AbstractEffectType {
public static final EffectFireResistanceType FIRE_RESISTANCE_TYPE = new EffectFireResistanceType();

private EffectFireResistanceType() {
super(12, new Identifier("minecraft:fire_resistance"), new Color(228, 154, 58));
super(12, new Identifier("minecraft:fire_resistance"), new Color(255, 153, 0));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectHungerType extends AbstractEffectType {
public static final EffectHungerType HUNGER_TYPE = new EffectHungerType();

private EffectHungerType() {
super(17, new Identifier("minecraft:hunger"), new Color(46, 139, 87), true);
super(17, new Identifier("minecraft:hunger"), new Color(88, 118, 83), true);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectInfestedType extends AbstractEffectType {
public static final EffectInfestedType INFESTED_TYPE = new EffectInfestedType();

private EffectInfestedType() {
super(35, new Identifier("minecraft:infested"), new Color(140, 155, 140), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectInstantDamageType extends AbstractEffectType {
public static final EffectInstantDamageType INSTANT_DAMAGE_TYPE = new EffectInstantDamageType();

private EffectInstantDamageType() {
super(7, new Identifier("minecraft:instant_damage"), new Color(67, 10, 9), true);
super(7, new Identifier("minecraft:instant_damage"), new Color(169, 101, 106), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectInvisibilityType extends AbstractEffectType {
public static final EffectInvisibilityType INVISIBILITY_TYPE = new EffectInvisibilityType();

private EffectInvisibilityType() {
super(14, new Identifier("minecraft:invisibility"), new Color(127, 131, 146));
super(14, new Identifier("minecraft:invisibility"), new Color(246, 246, 246));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectJumpBoostType extends AbstractEffectType {
public static final EffectJumpBoostType JUMP_BOOST_TYPE = new EffectJumpBoostType();

private EffectJumpBoostType() {
super(8, new Identifier("minecraft:jump_boost"), new Color(34, 255, 76));
super(8, new Identifier("minecraft:jump_boost"), new Color(253, 255, 132));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectNightVisionType extends AbstractEffectType {
public static final EffectNightVisionType NIGHT_VISION_TYPE = new EffectNightVisionType();

private EffectNightVisionType() {
super(16, new Identifier("minecraft:night_vision"), new Color(0, 0, 139));
super(16, new Identifier("minecraft:night_vision"), new Color(194, 255, 102));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectOozingType extends AbstractEffectType {
public static final EffectOozingType OOZING_TYPE = new EffectOozingType();

private EffectOozingType() {
super(34, new Identifier("minecraft:oozing"), new Color(153, 255, 163), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectPoisonType extends AbstractEffectType {
public static final EffectPoisonType POISON_TYPE = new EffectPoisonType();

private EffectPoisonType() {
super(19, new Identifier("minecraft:poison"), new Color(78, 147, 49), true);
super(19, new Identifier("minecraft:poison"), new Color(135, 163, 99), true);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectRaidOmenType extends AbstractEffectType {
public static final EffectRaidOmenType RAID_OMEN_TYPE = new EffectRaidOmenType();

private EffectRaidOmenType() {
super(36, new Identifier("minecraft:raid_omen"), new Color(222, 64, 88));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectResistanceType extends AbstractEffectType {
public static final EffectResistanceType RESISTANCE_TYPE = new EffectResistanceType();

private EffectResistanceType() {
super(11, new Identifier("minecraft:resistance"), new Color(153, 69, 58));
super(11, new Identifier("minecraft:resistance"), new Color(145, 70, 240));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectSaturationType extends AbstractEffectType {
public static final EffectSaturationType SATURATION_TYPE = new EffectSaturationType();

private EffectSaturationType() {
super(23, new Identifier("minecraft:saturation"), new Color(255, 0, 255));
super(23, new Identifier("minecraft:saturation"), new Color(248, 36, 35));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectSlowFallingType extends AbstractEffectType {
public static final EffectSlowFallingType SLOW_FALLING_TYPE = new EffectSlowFallingType();

private EffectSlowFallingType() {
super(27, new Identifier("minecraft:slow_falling"), new Color(206, 255, 255));
super(27, new Identifier("minecraft:slow_falling"), new Color(243, 207, 185));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectSlownessType extends AbstractEffectType {
public static final EffectSlownessType SLOWNESS_TYPE = new EffectSlownessType();

private EffectSlownessType() {
super(2, new Identifier("minecraft:slowness"), new Color(90, 108, 129), true);
super(2, new Identifier("minecraft:slowness"), new Color(139, 175, 224), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectSpeedType extends AbstractEffectType {
public static final EffectSpeedType SPEED_TYPE = new EffectSpeedType();

private EffectSpeedType() {
super(1, new Identifier("minecraft:speed"), new Color(124, 175, 198));
super(1, new Identifier("minecraft:speed"), new Color(51, 235, 255));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectStrengthType extends AbstractEffectType {
public static final EffectStrengthType STRENGTH_TYPE = new EffectStrengthType();

private EffectStrengthType() {
super(5, new Identifier("minecraft:strength"), new Color(147, 36, 35));
super(5, new Identifier("minecraft:strength"), new Color(255, 199, 0));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectTrialOmenType extends AbstractEffectType {
public static final EffectTrialOmenType TRIAL_OMEN_TYPE = new EffectTrialOmenType();

private EffectTrialOmenType() {
super(31, new Identifier("minecraft:trial_omen"), new Color(22, 166, 166));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectWaterBreathingType extends AbstractEffectType {
public static final EffectWaterBreathingType WATER_BREATHING_TYPE = new EffectWaterBreathingType();

private EffectWaterBreathingType() {
super(13, new Identifier("minecraft:water_breathing"), new Color(46, 82, 153));
super(13, new Identifier("minecraft:water_breathing"), new Color(152, 218, 192));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectWeavingType extends AbstractEffectType {
public static final EffectWeavingType WEAVING_OMEN_TYPE = new EffectWeavingType();

private EffectWeavingType() {
super(33, new Identifier("minecraft:weaving"), new Color(120, 105, 90), true);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.allaymc.api.entity.effect.type;

import org.allaymc.api.entity.effect.AbstractEffectType;
import org.allaymc.api.utils.Identifier;

import java.awt.*;

/**
* Allay Project 23/06/2024
*
* @author IWareQ
*/
public class EffectWindChargedType extends AbstractEffectType {
public static final EffectWindChargedType WIND_CHARGED_TYPE = new EffectWindChargedType();

private EffectWindChargedType() {
super(32, new Identifier("minecraft:wind_charged"), new Color(189, 201, 255), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class EffectWitherType extends AbstractEffectType {
public static final EffectWitherType WITHER_TYPE = new EffectWitherType();

private EffectWitherType() {
super(20, new Identifier("minecraft:wither"), new Color(53, 42, 39), true);
super(20, new Identifier("minecraft:wither"), new Color(115, 97, 86), true);
}
}

0 comments on commit a2930bf

Please sign in to comment.