当前位置: 首页>>代码示例>>Java>>正文


Java CraftWorld.getTileEntityAt方法代码示例

本文整理汇总了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();
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:9,代码来源:CraftCommandBlock.java

示例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);
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:15,代码来源:CraftSign.java

示例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();
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:10,代码来源:CraftSkull.java

示例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);
}
 
开发者ID:tgnmc,项目名称:Craftbukkit,代码行数:9,代码来源:CraftSign.java

示例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();
}
 
开发者ID:tgnmc,项目名称:Craftbukkit,代码行数:9,代码来源:CraftCommandBlock.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftJukebox.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftNoteBlock.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftDropper.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftDispenser.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftBeacon.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:7,代码来源:CraftChest.java

示例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());
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:6,代码来源:CraftCustomContainer.java

示例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());
}
 
开发者ID:tgnmc,项目名称:Craftbukkit,代码行数:7,代码来源:CraftJukebox.java


注:本文中的org.bukkit.craftbukkit.CraftWorld.getTileEntityAt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。