Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:12:01 -04:00
1 parent 250edf099c
commit 6815f579a7
1192 files changed
+60344 -62167

No files matched your search

@@ -5,37 +5,34 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import noppes.npcs.entity.data.ModelData;
public class EntityNpcPony extends EntityNPCInterface
{
public class EntityNpcPony extends EntityNPCInterface {
public boolean isPegasus = false;
public boolean isUnicorn = false;
public boolean isFlying = false;
public ResourceLocation checked = null;
public EntityNpcPony(World world)
{
public EntityNpcPony(World world) {
super(world);
display.texture = "customnpcs:textures/entity/ponies/MineLP Derpy Hooves.png";
}
public void onUpdate()
{
isDead = true;
if(!worldObj.isRemote){
NBTTagCompound compound = new NBTTagCompound();
writeToNBT(compound);
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
npc.readFromNBT(compound);
ModelData data = npc.modelData;
data.setEntityClass(EntityNpcPony.class);
worldObj.spawnEntityInWorld(npc);
}
public void onUpdate() {
isDead = true;
if (!worldObj.isRemote) {
NBTTagCompound compound = new NBTTagCompound();
writeToNBT(compound);
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
npc.readFromNBT(compound);
ModelData data = npc.modelData;
data.setEntityClass(EntityNpcPony.class);
worldObj.spawnEntityInWorld(npc);
}
super.onUpdate();
}
}