本文整理汇总了Java中net.minecraft.block.material.EnumPushReaction类的典型用法代码示例。如果您正苦于以下问题:Java EnumPushReaction类的具体用法?Java EnumPushReaction怎么用?Java EnumPushReaction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EnumPushReaction类属于net.minecraft.block.material包,在下文中一共展示了EnumPushReaction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BlockFluidEtchingAcid
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public BlockFluidEtchingAcid(Fluid fluid) {
super(fluid, new MaterialLiquid(MapColor.EMERALD) {
@Override
public EnumPushReaction getMobilityFlag() {
return EnumPushReaction.DESTROY;
}
});
}
示例2: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getPushReaction() {
if (m_realPlayer == null) {
return super.getPushReaction();
} else {
syncToRealPlayer();
return syncPublicFieldsFromRealAndReturn(m_realPlayer.getPushReaction());
}
}
示例3: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getPushReaction() {
if (m_realPlayer == null) {
return super.getPushReaction();
} else {
return m_realPlayer.getPushReaction();
}
}
示例4: canMove
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public boolean canMove()
{
this.toMove.clear();
this.toDestroy.clear();
IBlockState iblockstate = this.world.getBlockState(this.blockToMove);
if (!BlockPistonBase.canPush(iblockstate, this.world, this.blockToMove, this.moveDirection, false))
{
if (iblockstate.getMobilityFlag() == EnumPushReaction.DESTROY)
{
this.toDestroy.add(this.blockToMove);
return true;
}
else
{
return false;
}
}
else if (!this.addBlockLine(this.blockToMove))
{
return false;
}
else
{
for (int i = 0; i < this.toMove.size(); ++i)
{
BlockPos blockpos = (BlockPos)this.toMove.get(i);
if (this.world.getBlockState(blockpos).getBlock() == Blocks.SLIME_BLOCK && !this.addBranchingBlocks(blockpos))
{
return false;
}
}
return true;
}
}
示例5: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
@Deprecated
public EnumPushReaction getMobilityFlag(IBlockState state)
{
// total immobility and stop pistons
return EnumPushReaction.BLOCK;
}
示例6: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getMobilityFlag() {
return this.isImmovable ? EnumPushReaction.BLOCK :
(this.isReplaceable ? EnumPushReaction.DESTROY :
EnumPushReaction.NORMAL);
}
示例7: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getMobilityFlag() {
return delegate.getMobilityFlag();
}
示例8: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getPushReaction() {
return EnumPushReaction.IGNORE;
}
示例9: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public EnumPushReaction getMobilityFlag(IBlockState state) {
return EnumPushReaction.BLOCK;
}
示例10: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public EnumPushReaction getMobilityFlag(IBlockState state) {
return EnumPushReaction.DESTROY;
}
示例11: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
return this.hasMarker() ? EnumPushReaction.IGNORE : super.getPushReaction();
}
示例12: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
return EnumPushReaction.NORMAL;
}
示例13: getPushReaction
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
return EnumPushReaction.IGNORE;
}
示例14: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getMobilityFlag(IBlockState state)
{
return EnumPushReaction.NORMAL;
}
示例15: getMobilityFlag
import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Deprecated
public EnumPushReaction getMobilityFlag(IBlockState state)
{
return this.blockMaterial.getMobilityFlag();
}