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


Java EnumPushReaction类代码示例

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

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

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

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

示例5: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
@Deprecated
public EnumPushReaction getMobilityFlag(IBlockState state)
{
    // total immobility and stop pistons
    return EnumPushReaction.BLOCK;
}
 
开发者ID:FoudroyantFactotum,项目名称:Structure,代码行数:8,代码来源:StructureBlock.java

示例6: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getMobilityFlag() {
    
    return this.isImmovable ? EnumPushReaction.BLOCK :
            (this.isReplaceable ? EnumPushReaction.DESTROY :
            EnumPushReaction.NORMAL);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:8,代码来源:BlockMaterial.java

示例7: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getMobilityFlag() {
    return delegate.getMobilityFlag();
}
 
开发者ID:kenzierocks,项目名称:HardVox,代码行数:5,代码来源:BlockStateDelegate.java

示例8: getPushReaction

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Override
public EnumPushReaction getPushReaction() {
	return EnumPushReaction.IGNORE;
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:5,代码来源:EntityBrewLinger.java

示例9: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public EnumPushReaction getMobilityFlag(IBlockState state) {
	return EnumPushReaction.BLOCK;
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:6,代码来源:BlockWitchAltar.java

示例10: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public EnumPushReaction getMobilityFlag(IBlockState state) {
	return EnumPushReaction.DESTROY;
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:6,代码来源:BlockCircleGlyph.java

示例11: getPushReaction

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
    return this.hasMarker() ? EnumPushReaction.IGNORE : super.getPushReaction();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:EntityArmorStand.java

示例12: getPushReaction

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
    return EnumPushReaction.NORMAL;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:Entity.java

示例13: getPushReaction

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getPushReaction()
{
    return EnumPushReaction.IGNORE;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:EntityAreaEffectCloud.java

示例14: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
public EnumPushReaction getMobilityFlag(IBlockState state)
{
    return EnumPushReaction.NORMAL;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:BlockIce.java

示例15: getMobilityFlag

import net.minecraft.block.material.EnumPushReaction; //导入依赖的package包/类
@Deprecated
public EnumPushReaction getMobilityFlag(IBlockState state)
{
    return this.blockMaterial.getMobilityFlag();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:Block.java


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