本文整理匯總了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);
}