net.minecraft.entity.monster.EntitySnowman Java Examples
The following examples show how to use
net.minecraft.entity.monster.EntitySnowman.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServerEventHandler.java From Et-Futurum with The Unlicense | 5 votes |
@SubscribeEvent public void livingUpdate(LivingUpdateEvent event) { ModEnchantments.onLivingUpdate(event.entityLiving); if (EtFuturum.enableVillagerZombies) if (!event.entityLiving.worldObj.isRemote && event.entityLiving.getClass() == EntityZombie.class) { EntityZombie zombie = (EntityZombie) event.entityLiving; if (zombie.isVillager()) { EntityZombieVillager villagerZombie = new EntityZombieVillager(zombie.worldObj); villagerZombie.copyLocationAndAnglesFrom(zombie); villagerZombie.onSpawnWithEgg(null); villagerZombie.worldObj.spawnEntityInWorld(villagerZombie); zombie.setDead(); } } if (EtFuturum.enableShearableGolems) if (!event.entityLiving.worldObj.isRemote && event.entityLiving.getClass() == EntitySnowman.class) { EntityNewSnowGolem golen = new EntityNewSnowGolem(event.entityLiving.worldObj); golen.copyLocationAndAnglesFrom(event.entityLiving); golen.onSpawnWithEgg(null); golen.worldObj.spawnEntityInWorld(golen); event.entityLiving.setDead(); } }
Example #2
Source File: CraftSnowman.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftSnowman(CraftServer server, EntitySnowman entity) { super(server, entity); }
Example #3
Source File: CraftSnowman.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public EntitySnowman getHandle() { return (EntitySnowman) entity; }
Example #4
Source File: NewSnowGolemRenderer.java From Et-Futurum with The Unlicense | 4 votes |
@Override protected void renderEquippedItems(EntitySnowman entity, float partialTickTime) { if (((EntityNewSnowGolem) entity).hasPumpkin()) super.renderEquippedItems(entity, partialTickTime); }
Example #5
Source File: ItemInfo.java From NotEnoughItems with MIT License | 4 votes |
private static void addSpawnEggs() { addEntityEgg(EntitySnowman.class, 0xEEFFFF, 0xffa221); addEntityEgg(EntityIronGolem.class, 0xC5C2C1, 0xffe1cc); }