本文整理汇总了Java中net.minecraft.block.material.Material.circuits方法的典型用法代码示例。如果您正苦于以下问题:Java Material.circuits方法的具体用法?Java Material.circuits怎么用?Java Material.circuits使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.block.material.Material
的用法示例。
在下文中一共展示了Material.circuits方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BlockTorch
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockTorch()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP));
this.setTickRandomly(true);
this.setCreativeTab(CreativeTabs.tabDecorations);
}
示例2: BlockTripWire
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockTripWire()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(POWERED, Boolean.valueOf(false)).withProperty(SUSPENDED, Boolean.valueOf(false)).withProperty(ATTACHED, Boolean.valueOf(false)).withProperty(DISARMED, Boolean.valueOf(false)).withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)));
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15625F, 1.0F);
this.setTickRandomly(true);
}
示例3: BlockRedstoneWire
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockRedstoneWire() {
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState()
.withProperty(NORTH, BlockRedstoneWire.EnumAttachPosition.NONE)
.withProperty(EAST, BlockRedstoneWire.EnumAttachPosition.NONE)
.withProperty(SOUTH, BlockRedstoneWire.EnumAttachPosition.NONE)
.withProperty(WEST, BlockRedstoneWire.EnumAttachPosition.NONE).withProperty(POWER, Integer.valueOf(0)));
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);
}
示例4: BlockButton
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockButton(boolean wooden)
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(POWERED, Boolean.valueOf(false)));
this.setTickRandomly(true);
this.setCreativeTab(CreativeTabs.tabRedstone);
this.wooden = wooden;
}
示例5: BlockRailBase
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockRailBase(boolean isPowered)
{
super(Material.circuits);
this.isPowered = isPowered;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
this.setCreativeTab(CreativeTabs.tabTransport);
}
示例6: BlockTripWireHook
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockTripWireHook()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(POWERED, Boolean.valueOf(false)).withProperty(ATTACHED, Boolean.valueOf(false)).withProperty(SUSPENDED, Boolean.valueOf(false)));
this.setCreativeTab(CreativeTabs.tabRedstone);
this.setTickRandomly(true);
}
示例7: BlockRedstoneDiode
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockRedstoneDiode(boolean powered)
{
super(Material.circuits);
this.isRepeaterPowered = powered;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
}
示例8: BlockFlowerPot
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockFlowerPot()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(CONTENTS, BlockFlowerPot.EnumFlowerType.EMPTY).withProperty(LEGACY_DATA, Integer.valueOf(0)));
this.setBlockBoundsForItemRender();
}
示例9: BlockRedstoneWire
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockRedstoneWire()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, BlockRedstoneWire.EnumAttachPosition.NONE).withProperty(EAST, BlockRedstoneWire.EnumAttachPosition.NONE).withProperty(SOUTH, BlockRedstoneWire.EnumAttachPosition.NONE).withProperty(WEST, BlockRedstoneWire.EnumAttachPosition.NONE).withProperty(POWER, Integer.valueOf(0)));
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);
}
示例10: canBlockBePlaced
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public boolean canBlockBePlaced(Block blockIn, BlockPos pos, boolean p_175716_3_, EnumFacing side, Entity entityIn, ItemStack itemStackIn)
{
Block block = this.getBlockState(pos).getBlock();
AxisAlignedBB axisalignedbb = p_175716_3_ ? null : blockIn.getCollisionBoundingBox(this, pos, blockIn.getDefaultState());
return axisalignedbb != null && !this.checkNoEntityCollision(axisalignedbb, entityIn) ? false : (block.getMaterial() == Material.circuits && blockIn == Blocks.anvil ? true : block.getMaterial().isReplaceable() && blockIn.canReplace(this, pos, side, itemStackIn));
}
示例11: BlockSkull
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockSkull()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(NODROP, Boolean.valueOf(false)));
this.setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F);
}
示例12: BlockLever
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockLever()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, BlockLever.EnumOrientation.NORTH).withProperty(POWERED, Boolean.valueOf(false)));
this.setCreativeTab(CreativeTabs.tabRedstone);
}
示例13: BlockLadder
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
protected BlockLadder()
{
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
this.setCreativeTab(CreativeTabs.tabDecorations);
}