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


Java Material.GROUND属性代码示例

本文整理汇总了Java中net.minecraft.block.material.Material.GROUND属性的典型用法代码示例。如果您正苦于以下问题:Java Material.GROUND属性的具体用法?Java Material.GROUND怎么用?Java Material.GROUND使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.minecraft.block.material.Material的用法示例。


在下文中一共展示了Material.GROUND属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: BlockPictureFrameMultiple

public BlockPictureFrameMultiple() {
	super(Material.GROUND);
	this.setUnlocalizedName("pictureframe_multiple");
	this.setHardness(0.5F);
	this.setSoundType(SoundType.WOOD);
	this.setCreativeTab(CreativeTabsLoader.tabMineCamera);
	/*
	 * this.setDefaultState(
	 * this.blockState.getBaseState().withProperty(FACING,
	 * EnumFacing.NORTH).withProperty(ISHEAD, false).withProperty(LINE,
	 * 1).withProperty(COLUMN, 1).withProperty(RENDERTYPE, 0));
	 */
	this.setDefaultState(
			this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(RENDERTYPE, 0));
}
 
开发者ID:PorPit,项目名称:MineCamera,代码行数:15,代码来源:BlockPictureFrameMultiple.java

示例2: BlockPictureFrame

public BlockPictureFrame() {
	super(Material.GROUND);
	this.setUnlocalizedName("pictureframe");
	this.setHardness(0.5F);
	this.setSoundType(SoundType.WOOD);
	this.setCreativeTab(CreativeTabsLoader.tabMineCamera);
	this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)
			.withProperty(STATETYPE, EnumStateType.STANDING));
}
 
开发者ID:PorPit,项目名称:MineCamera,代码行数:9,代码来源:BlockPictureFrame.java

示例3: BlockPhotoProcessor

public BlockPhotoProcessor() {
	super(Material.GROUND);
	this.setUnlocalizedName("photoprocessor");
	this.setHardness(0.5F);
	this.setSoundType(SoundType.ANVIL);
	this.setCreativeTab(CreativeTabsLoader.tabMineCamera);
	this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
}
 
开发者ID:PorPit,项目名称:MineCamera,代码行数:8,代码来源:BlockPhotoProcessor.java

示例4: BlockSample

public BlockSample()
{
    super(Material.GROUND);
    this.setRegistryName(new ResourceLocation(Lib.MODID, "ore_sample"));
    this.setHardness(0.125F);
    this.setResistance(2F);
    this.setSoundType(SoundType.GROUND);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
    this.setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, Types.Modded.HEMATITE));
    this.setUnlocalizedName(this.getRegistryName().toString().replaceAll(":", "."));
    ForgeRegistries.BLOCKS.register(this);
    ForgeRegistries.ITEMS.register(new ItemBlockOre(this));
    MinecraftForge.EVENT_BUS.register(this);
}
 
开发者ID:oitsjustjose,项目名称:Geolosys,代码行数:14,代码来源:BlockSample.java

示例5: BlockSampleVanilla

public BlockSampleVanilla()
{
    super(Material.GROUND);
    this.setRegistryName(new ResourceLocation(Lib.MODID, "ore_sample_vanilla"));
    this.setHardness(0.125F);
    this.setResistance(2F);
    this.setSoundType(SoundType.GROUND);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
    this.setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, Types.Vanilla.COAL));
    this.setUnlocalizedName(this.getRegistryName().toString().replaceAll(":", "."));
    ForgeRegistries.BLOCKS.register(this);
    ForgeRegistries.ITEMS.register(new ItemBlockOre(this));
    MinecraftForge.EVENT_BUS.register(this);
}
 
开发者ID:oitsjustjose,项目名称:Geolosys,代码行数:14,代码来源:BlockSampleVanilla.java

示例6: BlockAshPile

public BlockAshPile(String name,Boolean coke) {
	super(Material.GROUND, name);
	isCoke=coke;
	setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
	setHardness(0.6F);
	setHarvestLevel("shovel", 0);
	setSoundType(SoundType.SAND);
}
 
开发者ID:EnderiumSmith,项目名称:CharcoalPit,代码行数:8,代码来源:BlockAshPile.java

示例7: getDestroySpeed

@Override
public float getDestroySpeed(ItemStack stack, IBlockState state) {
	for (String type : getToolClasses(stack)) {
		if (state.getBlock().isToolEffective(type, state) || state.getMaterial() == Material.GROUND
				|| state.getMaterial() == Material.GRASS || state.getMaterial() == Material.SAND
				|| state.getMaterial() == Material.SNOW || state.getMaterial() == Material.CRAFTED_SNOW
				|| state.getMaterial() == Material.CLAY) {
			return getEfficiency(stack);
		}
	}
	return 1.0F;
}
 
开发者ID:the-realest-stu,项目名称:Adventurers-Toolbox,代码行数:12,代码来源:ItemATShovel.java

示例8: BlockFarmland

protected BlockFarmland()
{
    super(Material.GROUND);
    this.setDefaultState(this.blockState.getBaseState().withProperty(MOISTURE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setLightOpacity(255);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:BlockFarmland.java

示例9: getStrVsBlock

@Override
public float getStrVsBlock(ItemStack stack, IBlockState state)
   {
       Material material = state.getMaterial();
       float ret = material != Material.GRASS && material != Material.GROUND && material != Material.CRAFTED_SNOW && material != Material.SNOW && material != Material.SAND && material != Material.CLAY && material != Material.GOURD ? super.getStrVsBlock(stack, state) : this.getStats(stack).getEfficiency();
   	return ret * 0.75F;
   }
 
开发者ID:V0idWa1k3r,项目名称:ExPetrum,代码行数:7,代码来源:ItemGardeningSpade.java

示例10: isSoftGround

public static boolean isSoftGround(World world, BlockPos pos)
{
	Material material = world.getBlockState(pos).getMaterial();
	return (material == Material.GRASS || material == Material.GROUND || material == Material.SAND);
}
 
开发者ID:crazysnailboy,项目名称:Halloween,代码行数:5,代码来源:BlockUtils.java

示例11: BlockGrassPath

protected BlockGrassPath()
{
    super(Material.GROUND);
    this.setLightOpacity(255);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:BlockGrassPath.java

示例12: BlockDirt

protected BlockDirt()
{
    super(Material.GROUND);
    this.setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, BlockDirt.DirtType.DIRT).withProperty(SNOWY, Boolean.valueOf(false)));
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:BlockDirt.java

示例13: BlockExtension

public BlockExtension() {
	super(Material.GROUND, "block_well_extension");
	setBlockUnbreakable();
	setSoundType(SoundType.METAL);
	setCreativeTab(null);
}
 
开发者ID:cjburkey01,项目名称:MiningWells,代码行数:6,代码来源:BlockExtension.java

示例14: getStrVsBlock

@Override
public float getStrVsBlock(ItemStack stack, IBlockState state)
   {
       Material material = state.getMaterial();
       return material != Material.GRASS && material != Material.GROUND && material != Material.CRAFTED_SNOW && material != Material.SNOW && material != Material.SAND && material != Material.CLAY && material != Material.GOURD ? super.getStrVsBlock(stack, state) : this.getStats(stack).getEfficiency();
   }
 
开发者ID:V0idWa1k3r,项目名称:ExPetrum,代码行数:6,代码来源:ItemShovel.java

示例15: BlockFarmland

public BlockFarmland()
{
	super(Material.GROUND);
	this.initBlock();
}
 
开发者ID:V0idWa1k3r,项目名称:ExPetrum,代码行数:5,代码来源:BlockFarmland.java


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