Search in sources :

Example 1 with LocatedEntity

use of igwmod.gui.LocatedEntity in project PneumaticCraft by MineMaarten.

the class IntegratorPressureChamber method handleVillagers.

private void handleVillagers(int x, int y, List<IWidget> locatedTextures) {
    locatedTextures.add(new LocatedEntity(EntityVillager.class, x + 70, y + 95, 2F));
    LocatedEntity locatedEntity = new LocatedEntity(EntityVillager.class, x + 215, y + 125, 2F);
    EntityVillager villager = (EntityVillager) locatedEntity.entity;
    villager.setProfession(Config.villagerMechanicID);
    locatedTextures.add(locatedEntity);
}
Also used : EntityVillager(net.minecraft.entity.passive.EntityVillager) LocatedEntity(igwmod.gui.LocatedEntity)

Aggregations

LocatedEntity (igwmod.gui.LocatedEntity)1 EntityVillager (net.minecraft.entity.passive.EntityVillager)1