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


Java TileEntity.receiveClientEvent方法代码示例

本文整理汇总了Java中net.minecraft.tileentity.TileEntity.receiveClientEvent方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntity.receiveClientEvent方法的具体用法?Java TileEntity.receiveClientEvent怎么用?Java TileEntity.receiveClientEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.tileentity.TileEntity的用法示例。


在下文中一共展示了TileEntity.receiveClientEvent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: eventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
/**
 * Called on server when World#addBlockEvent is called. If server returns true, then also called on the client. On
 * the Server, this may perform additional changes to the world, like pistons replacing the block with an extended
 * base. On the client, the update may involve replacing tile entities or effects such as sounds or particles
 */
@Override
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param) {
    super.eventReceived(state, worldIn, pos, id, param);
    TileEntity tileentity = worldIn.getTileEntity(pos);
    return tileentity != null && tileentity.receiveClientEvent(id, param);
}
 
开发者ID:canitzp,项目名称:Metalworks,代码行数:12,代码来源:BlockContainerBase.java

示例2: eventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
/**
 * Called on both Client and Server when World#addBlockEvent is called. On the Server, this may perform additional
 * changes to the world, like pistons replacing the block with an extended base. On the client, the update may
 * involve replacing tile entities, playing sounds, or performing other visual actions to reflect the server side
 * changes.
 */
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param)
{
    super.eventReceived(state, worldIn, pos, id, param);
    TileEntity tileentity = worldIn.getTileEntity(pos);
    return tileentity == null ? false : tileentity.receiveClientEvent(id, param);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:13,代码来源:BlockContainer.java

示例3: onBlockEventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
/**
 * Called on both Client and Server when World#addBlockEvent is called
 */
public boolean onBlockEventReceived(World worldIn, BlockPos pos, IBlockState state, int eventID, int eventParam)
{
    super.onBlockEventReceived(worldIn, pos, state, eventID, eventParam);
    TileEntity tileentity = worldIn.getTileEntity(pos);
    return tileentity == null ? false : tileentity.receiveClientEvent(eventID, eventParam);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:10,代码来源:BlockRedstoneComparator.java

示例4: eventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
@Override
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param)
{
    super.eventReceived(state, worldIn, pos, id, param);
    TileEntity tileentity = worldIn.getTileEntity(pos);
    return tileentity != null && tileentity.receiveClientEvent(id, param);
}
 
开发者ID:cubex2,项目名称:morefurnaces,代码行数:8,代码来源:BlockMoreFurnaces.java

示例5: eventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
@Override
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int eventId, int eventParam) {
    super.eventReceived(state, worldIn, pos, eventId, eventParam);
    TileEntity tileentity = worldIn.getTileEntity(pos);
    return tileentity == null ? false : tileentity.receiveClientEvent(eventId, eventParam);
}
 
开发者ID:astronautlabs,项目名称:rezolve,代码行数:7,代码来源:TileBlockBase.java

示例6: eventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
@Override
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param) {
	super.eventReceived(state, worldIn, pos, id, param);
	TileEntity tileentity = worldIn.getTileEntity(pos);
	return tileentity == null ? false : tileentity.receiveClientEvent(id, param);
}
 
开发者ID:trigg,项目名称:Firma,代码行数:7,代码来源:OreBlock.java

示例7: onBlockEventReceived

import net.minecraft.tileentity.TileEntity; //导入方法依赖的package包/类
@Override
public boolean onBlockEventReceived(World w, int x, int y, int z, int i, int i0) {
	super.onBlockEventReceived(w, x, y, z, i, i0);
	TileEntity tileentity = w.getTileEntity(x, y, z);
	return tileentity == null ? false : tileentity.receiveClientEvent(i, i0);
}
 
开发者ID:TominoCZ,项目名称:PAYDAY,代码行数:7,代码来源:LobbyBlock.java


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