Search in sources :

Example 6 with EntityItemFrame

use of net.minecraft.server.v1_14_R1.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_15_R1.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_15_R1.EntityItemFrame) BlockPosition(net.minecraft.server.v1_15_R1.BlockPosition)

Example 7 with EntityItemFrame

use of net.minecraft.server.v1_14_R1.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_16_R3.entity.CraftEntity) EntityItemFrame(net.minecraft.server.v1_16_R3.EntityItemFrame) BlockPosition(net.minecraft.server.v1_16_R3.BlockPosition)

Example 8 with EntityItemFrame

use of net.minecraft.server.v1_14_R1.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)

Aggregations

Entity (org.bukkit.entity.Entity)8 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_13_R2.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_13_R2.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_14_R1.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_14_R1.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_15_R1.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_15_R1.EntityItemFrame)1 BlockPosition (net.minecraft.server.v1_16_R3.BlockPosition)1 EntityItemFrame (net.minecraft.server.v1_16_R3.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