本文整理汇总了Java中net.minecraft.block.BlockEventData.getBlock方法的典型用法代码示例。如果您正苦于以下问题:Java BlockEventData.getBlock方法的具体用法?Java BlockEventData.getBlock怎么用?Java BlockEventData.getBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.block.BlockEventData
的用法示例。
在下文中一共展示了BlockEventData.getBlock方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fireBlockEvent
import net.minecraft.block.BlockEventData; //导入方法依赖的package包/类
private boolean fireBlockEvent(BlockEventData event)
{
IBlockState iblockstate = this.getBlockState(event.getPosition());
return iblockstate.getBlock() == event.getBlock() ? iblockstate.getBlock().onBlockEventReceived(this, event.getPosition(), iblockstate, event.getEventID(), event.getEventParameter()) : false;
}
示例2: fireBlockEvent
import net.minecraft.block.BlockEventData; //导入方法依赖的package包/类
private boolean fireBlockEvent(BlockEventData event)
{
IBlockState iblockstate = this.getBlockState(event.getPosition());
return iblockstate.getBlock() == event.getBlock() ? iblockstate.onBlockEventReceived(this, event.getPosition(), event.getEventID(), event.getEventParameter()) : false;
}
示例3: func_147485_a
import net.minecraft.block.BlockEventData; //导入方法依赖的package包/类
private boolean func_147485_a(BlockEventData event) {
final Block block = this.getBlock(event.func_151340_a(), event.func_151342_b(), event.func_151341_c());
return block == event.getBlock() ? block.onBlockEventReceived(this, event.func_151340_a(),
event.func_151342_b(), event.func_151341_c(), event.getEventID(), event.getEventParameter()) : false;
}
示例4: func_147485_a
import net.minecraft.block.BlockEventData; //导入方法依赖的package包/类
private boolean func_147485_a(BlockEventData p_147485_1_)
{
Block var2 = this.getBlock(p_147485_1_.func_151340_a(), p_147485_1_.func_151342_b(), p_147485_1_.func_151341_c());
return var2 == p_147485_1_.getBlock() ? var2.onBlockEventReceived(this, p_147485_1_.func_151340_a(), p_147485_1_.func_151342_b(), p_147485_1_.func_151341_c(), p_147485_1_.getEventID(), p_147485_1_.getEventParameter()) : false;
}
示例5: func_147485_a
import net.minecraft.block.BlockEventData; //导入方法依赖的package包/类
private boolean func_147485_a(BlockEventData p_147485_1_)
{
Block block = this.getBlock(p_147485_1_.func_151340_a(), p_147485_1_.func_151342_b(), p_147485_1_.func_151341_c());
return block == p_147485_1_.getBlock() ? block.onBlockEventReceived(this, p_147485_1_.func_151340_a(), p_147485_1_.func_151342_b(), p_147485_1_.func_151341_c(), p_147485_1_.getEventID(), p_147485_1_.getEventParameter()) : false;
}