当前位置: 首页>>代码示例>>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;未经允许,请勿转载。