blob: 17dce66d9282255d9fa3f422d444aef4ab84fefa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package io.github.moulberry.notenoughupdates.miscfeatures.entityviewer;
import com.google.gson.JsonObject;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityCreeper;
public class ChargedModifier extends EntityViewerModifier {
@Override
public EntityLivingBase applyModifier(EntityLivingBase base, JsonObject info) {
if (base instanceof EntityCreeper) {
base.getDataWatcher().updateObject(17, (byte) 1);
return base;
}
return null;
}
}
|