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

@@ -1,6 +1,6 @@
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package noppes.npcs.entity;
@@ -9,36 +9,33 @@ import net.minecraft.world.World;
import noppes.npcs.entity.data.ModelData;
// Referenced classes of package net.minecraft.src:
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
// EntityAnimal, Item, EntityPlayer, InventoryPlayer,
// ItemStack, World, NBTTagCompound
public class EntityNpcCrystal extends EntityNPCInterface
{
public EntityNpcCrystal(World world)
{
public class EntityNpcCrystal extends EntityNPCInterface {
public EntityNpcCrystal(World world) {
super(world);
scaleX = 0.7f;
scaleY = 0.7f;
scaleZ = 0.7f;
display.texture = "customnpcs:textures/entity/crystal/EnderCrystal.png";
scaleX = 0.7f;
scaleY = 0.7f;
scaleZ = 0.7f;
display.texture = "customnpcs:textures/entity/crystal/EnderCrystal.png";
}
@Override
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(EntityNpcCrystal.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(EntityNpcCrystal.class);
worldObj.spawnEntityInWorld(npc);
}
super.onUpdate();
}