Search in sources :

Example 1 with EntityItemFrame

use of net.minecraft.server.v1_8_R3.EntityItemFrame in project Citizens2 by CitizensDev.

the class ItemFrameController method createEntity.

@Override
protected Entity createEntity(Location at, NPC npc) {
    Entity e = super.createEntity(at, npc);
    EntityItemFrame item = (EntityItemFrame) ((CraftEntity) e).getHandle();
    item.setDirection(EnumDirection.EAST);
    item.blockPosition = new BlockPosition(at.getX(), at.getY(), at.getZ());
    return e;
}
Also used : Entity(org.bukkit.entity.Entity) CraftEntity(org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_8_R3.EntityItemFrame) BlockPosition(net.minecraft.server.v1_8_R3.BlockPosition)

Example 2 with EntityItemFrame

use of net.minecraft.server.v1_8_R3.EntityItemFrame in project Citizens2 by CitizensDev.

the class ItemFrameController method createEntity.

@Override
protected Entity createEntity(Location at, NPC npc) {
    Entity e = super.createEntity(at, npc);
    EntityItemFrame item = (EntityItemFrame) ((CraftEntity) e).getHandle();
    item.setDirection(EnumDirection.EAST);
    item.blockPosition = new BlockPosition(at.getX(), at.getY(), at.getZ());
    return e;
}
Also used : Entity(org.bukkit.entity.Entity) CraftEntity(org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_12_R1.EntityItemFrame) BlockPosition(net.minecraft.server.v1_12_R1.BlockPosition)

Example 3 with EntityItemFrame

use of net.minecraft.server.v1_8_R3.EntityItemFrame in project Citizens2 by CitizensDev.

the class ItemFrameController method createEntity.

@Override
protected Entity createEntity(Location at, NPC npc) {
    Entity e = super.createEntity(at, npc);
    EntityItemFrame item = (EntityItemFrame) ((CraftEntity) e).getHandle();
    item.setDirection(EnumDirection.EAST);
    item.blockPosition = new BlockPosition(at.getX(), at.getY(), at.getZ());
    return e;
}
Also used : Entity(org.bukkit.entity.Entity) CraftEntity(org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_11_R1.EntityItemFrame) BlockPosition(net.minecraft.server.v1_11_R1.BlockPosition)

Example 4 with EntityItemFrame

use of net.minecraft.server.v1_8_R3.EntityItemFrame in project Citizens2 by CitizensDev.

the class ItemFrameController method createEntity.

@Override
protected Entity createEntity(Location at, NPC npc) {
    Entity e = super.createEntity(at, npc);
    EntityItemFrame item = (EntityItemFrame) ((CraftEntity) e).getHandle();
    item.setDirection(EnumDirection.EAST);
    item.blockPosition = new BlockPosition(at.getX(), at.getY(), at.getZ());
    return e;
}
Also used : Entity(org.bukkit.entity.Entity) CraftEntity(org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_10_R1.EntityItemFrame) BlockPosition(net.minecraft.server.v1_10_R1.BlockPosition)

Aggregations

Entity (org.bukkit.entity.Entity)4 BlockPosition (net.minecraft.server.v1_10_R1.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_10_R1.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_11_R1.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_11_R1.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_12_R1.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_12_R1.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_8_R3.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_8_R3.EntityItemFrame)1 CraftEntity (org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity)1 CraftEntity (org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity)1 CraftEntity (org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity)1 CraftEntity (org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity)1