Skip to content

Commit

Permalink
删除冗余的代码。
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyceryl6 committed Aug 19, 2024
1 parent c8b73bb commit 1d6449d
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class HeartDeterioratedEffect extends BaseEffect {
public HeartDeterioratedEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.heart_deteriorated");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class HeartHyperactivityEffect extends BaseEffect {
public HeartHyperactivityEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.heart_hyperactivity");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class KidneyDeterioratedEffect extends BaseEffect {
public KidneyDeterioratedEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.kidney_deteriorated");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class KidneyHyperactivityEffect extends BaseEffect {
public KidneyHyperactivityEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.kidney_hyperactivity");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LiverDeterioratedEffect extends BaseEffect {
public LiverDeterioratedEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.liver_deteriorated");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LiverHyperactivityEffect extends BaseEffect {
public LiverHyperactivityEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.liver_hyperactivity");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LungDeterioratedEffect extends BaseEffect {
public LungDeterioratedEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.lung_deteriorated");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LungHyperactivityEffect extends BaseEffect {
public LungHyperactivityEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.lung_hyperactivity");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class SpleenDeterioratedEffect extends BaseEffect {
public SpleenDeterioratedEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.spleen_deteriorated");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class SpleenHyperactivityEffect extends BaseEffect {
public SpleenHyperactivityEffect() {
super(MobEffectCategory.HARMFUL, 0x00FF00, "effect.whispergrove.spleen_hyperactivity");
super(MobEffectCategory.HARMFUL, 0x00FF00);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,11 @@

import net.minecraft.world.effect.MobEffect;
import net.minecraft.world.effect.MobEffectCategory;
import net.minecraft.world.entity.LivingEntity;
import org.jetbrains.annotations.NotNull;

public class BaseEffect extends MobEffect {

private final String id;

public BaseEffect(MobEffectCategory category, int color,String id) {
public BaseEffect(MobEffectCategory category, int color) {
super(category, color);
this.id = id;
}

@Override
public @NotNull String getDescriptionId() {
return id;
}

@Override
public void onEffectStarted(LivingEntity entity, int amplifier) {
super.onEffectStarted(entity, amplifier);
}

@Override
public boolean shouldApplyEffectTickThisTick(int duration, int amplifier) {
return super.shouldApplyEffectTickThisTick(duration, amplifier);
}

@Override
public boolean applyEffectTick(LivingEntity entity, int amplifier) {
return super.applyEffectTick(entity, amplifier);
}
}
}

This file was deleted.

This file was deleted.

0 comments on commit 1d6449d

Please sign in to comment.