本文整理汇总了Java中org.bukkit.craftbukkit.CraftWorld.getTileEntityAt方法的典型用法代码示例。如果您正苦于以下问题:Java CraftWorld.getTileEntityAt方法的具体用法?Java CraftWorld.getTileEntityAt怎么用?Java CraftWorld.getTileEntityAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bukkit.craftbukkit.CraftWorld
的用法示例。
在下文中一共展示了CraftWorld.getTileEntityAt方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CraftCommandBlock
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftCommandBlock(Block block) {
super(block);
CraftWorld world = (CraftWorld) block.getWorld();
commandBlock = (TileEntityCommandBlock) world.getTileEntityAt(getX(), getY(), getZ());
command = commandBlock.func_145993_a().field_145763_e;
name = commandBlock.func_145993_a().getCommandSenderName();
}
示例2: CraftSign
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftSign(final Block block) {
super(block);
CraftWorld world = (CraftWorld) block.getWorld();
sign = (net.minecraft.tileentity.TileEntitySign) world.getTileEntityAt(getX(), getY(), getZ());
// Spigot start
if (sign == null) {
lines = new String[]{"", "", "", ""};
return;
}
// Spigot end
lines = new String[sign.signText.length];
System.arraycopy(sign.signText, 0, lines, 0, lines.length);
}
示例3: CraftSkull
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftSkull(final Block block) {
super(block);
CraftWorld world = (CraftWorld) block.getWorld();
skull = (TileEntitySkull) world.getTileEntityAt(getX(), getY(), getZ());
profile = skull.func_152108_a();
skullType = getSkullType(skull.func_145904_a());
rotation = (byte) skull.getRotation();
}
示例4: CraftSign
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftSign(final Block block) {
super(block);
CraftWorld world = (CraftWorld) block.getWorld();
sign = (TileEntitySign) world.getTileEntityAt(getX(), getY(), getZ());
lines = new String[sign.lines.length];
System.arraycopy(revertComponents(sign.lines), 0, lines, 0, lines.length);
}
示例5: CraftCommandBlock
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftCommandBlock(Block block) {
super(block);
CraftWorld world = (CraftWorld) block.getWorld();
commandBlock = (TileEntityCommand) world.getTileEntityAt(getX(), getY(), getZ());
command = commandBlock.getCommandBlock().getCommand();
name = commandBlock.getCommandBlock().getName();
}
示例6: CraftJukebox
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftJukebox(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
jukebox = (TileEntityJukebox) world.getTileEntityAt(getX(), getY(), getZ());
}
示例7: CraftNoteBlock
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftNoteBlock(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
note = (TileEntityNote) world.getTileEntityAt(getX(), getY(), getZ());
}
示例8: CraftDropper
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftDropper(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
dropper = (TileEntityDropper) world.getTileEntityAt(getX(), getY(), getZ());
}
示例9: CraftDispenser
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftDispenser(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
dispenser = (TileEntityDispenser) world.getTileEntityAt(getX(), getY(), getZ());
}
示例10: CraftBeacon
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftBeacon(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
beacon = (TileEntityBeacon) world.getTileEntityAt(getX(), getY(), getZ());
}
示例11: CraftChest
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftChest(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
chest = (TileEntityChest) world.getTileEntityAt(getX(), getY(), getZ());
}
示例12: CraftCustomContainer
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftCustomContainer(Block block) {
super(block);
world = (CraftWorld) block.getWorld();
container = (IInventory)world.getTileEntityAt(getX(), getY(), getZ());
}
示例13: CraftJukebox
import org.bukkit.craftbukkit.CraftWorld; //导入方法依赖的package包/类
public CraftJukebox(final Block block) {
super(block);
world = (CraftWorld) block.getWorld();
jukebox = (TileEntityRecordPlayer) world.getTileEntityAt(getX(), getY(), getZ());
}