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


Java BlockEventData.getBlock方法代码示例

本文整理汇总了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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:WorldServer.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:WorldServer.java

示例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;
}
 
开发者ID:OreCruncher,项目名称:Jiffy,代码行数:6,代码来源:WorldServer.java

示例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;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:6,代码来源:WorldServer.java

示例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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:6,代码来源:WorldServer.java


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