當前位置: 首頁>>代碼示例>>Java>>正文


Java Material.circuits方法代碼示例

本文整理匯總了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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:8,代碼來源:BlockTorch.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:8,代碼來源:BlockTripWire.java

示例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);
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:10,代碼來源:BlockRedstoneWire.java

示例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;
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:9,代碼來源:BlockButton.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:8,代碼來源:BlockRailBase.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:8,代碼來源:BlockTripWireHook.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:7,代碼來源:BlockRedstoneDiode.java

示例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();
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:7,代碼來源:BlockFlowerPot.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:7,代碼來源:BlockRedstoneWire.java

示例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));
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:7,代碼來源:World.java

示例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);
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:7,代碼來源:BlockSkull.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:7,代碼來源:BlockLever.java

示例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);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:7,代碼來源:BlockLadder.java


注:本文中的net.minecraft.block.material.Material.circuits方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。