net.minecraft.block.Block.setHarvestLevel()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(9.2k)|赞(0)|评价(0)|浏览(160)

本文整理了Java中net.minecraft.block.Block.setHarvestLevel()方法的一些代码示例,展示了Block.setHarvestLevel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.setHarvestLevel()方法的具体详情如下:
包路径:net.minecraft.block.Block
类名称:Block
方法名:setHarvestLevel

Block.setHarvestLevel介绍

暂无

代码示例

代码示例来源:origin: SleepyTrousers/EnderCore

@Override
 @SuppressWarnings("null")
 public void unload() { Blocks.PACKED_ICE.setHarvestLevel(null, -1); }
});

代码示例来源:origin: MatrexsVigil/harvestcraft

public BlockBase setHarvestProperties(String toolType, int level){
  super.setHarvestLevel(toolType, level);
  return this;
}

代码示例来源:origin: SleepyTrousers/EnderCore

@Override
public void load() { Blocks.PACKED_ICE.setHarvestLevel("pickaxe", 0); }

代码示例来源:origin: CyclopsMC/EvilCraft

@Override
protected IConfigurable initSubInstance() {
  Block block = new ConfigurableBlock(this, Material.ROCK) {
    @Override
    public SoundType getSoundType() {
      return SoundType.STONE;
    }
  }.setHardness(5.0F);
  block.setHarvestLevel("pickaxe", 2);
  return (ConfigurableBlock) block;
}

代码示例来源:origin: vadis365/TheErebus

public static Block createWooden(IBlockState modelState) {
  Block block = new BlockStairsErebus(modelState);
  Blocks.FIRE.setFireInfo(block, 5, 5);
  block.setHarvestLevel("axe", 0);
  return block;
}

代码示例来源:origin: CyclopsMC/EvilCraft

@Override
protected IConfigurable initSubInstance() {
  Block block = new ConfigurableBlock(this, Material.ROCK) {
    @Override
    public SoundType getSoundType() {
      return SoundType.STONE;
    }
  }.setHardness(1.5F).setResistance(10.0F);
  block.setHarvestLevel("pickaxe", 0);
  return (ConfigurableBlock) block;
}

代码示例来源:origin: TeamLapen/Vampirism

public BlockCursedEarth() {
  super(name, Material.GROUND);
  this.setHardness(0.5F).setResistance(2.0F).setHarvestLevel("shovel", 0);
  setSoundType(SoundType.GROUND);
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockSteel", null, beaconBaseProvider)
      .setParentFolder("metals/steel")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockSteel")
      .build(b -> b.setSoundType(SoundType.METAL).setHarvestLevel("pickaxe", 2));
  CarvingUtils.addOreGroup("blockSteel");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockTin", null, beaconBaseProvider)
      .setParentFolder("metals/tin")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockTin")
      .build(b -> b.setSoundType(SoundType.METAL).setHarvestLevel("pickaxe", 1));
  CarvingUtils.addOreGroup("blockTin");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockUranium", null, beaconBaseProvider)
      .setParentFolder("metals/uranium")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockUranium")
      .build(b -> b.setSoundType(SoundType.METAL).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockUranium");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockAluminum", null, beaconBaseProvider)
      .setParentFolder("metals/aluminum")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockAluminum")
      .build(b -> b.setSoundType(SoundType.METAL).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockAluminum");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockSilver", null, beaconBaseProvider)
      .setParentFolder("metals/silver")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockSilver")
      .build(b -> b.setSoundType(SoundType.METAL).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockSilver");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockBronze", null, beaconBaseProvider)
      .setParentFolder("metals/bronze")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockBronze")
      .build(b -> b.setSoundType(SoundType.METAL).setHardness(5.0F).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockBronze");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockCobalt", null, beaconBaseProvider)
      .setParentFolder("metals/cobalt")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockCobalt")
      .build(b -> b.setSoundType(SoundType.METAL).setHardness(5.0F).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockCobalt");
  
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockCopper", null, beaconBaseProvider)
      .setParentFolder("metals/copper")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockCopper")
      .build(b -> b.setSoundType(SoundType.METAL).setHardness(5.0F).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockCopper");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockPlatinum", null, beaconBaseProvider)
      .setParentFolder("metals/platinum")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockPlatinum")
      .build(b-> b.setSoundType(SoundType.METAL).setHardness(5.0f).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockPlatinum");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockElectrum", null, beaconBaseProvider)
      .setParentFolder("metals/electrum")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockElectrum")
      .build(b -> b.setSoundType(SoundType.METAL).setHardness(5.0F).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockElectrum");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockInvar", null, beaconBaseProvider)
      .setParentFolder("metals/invar")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockInvar")
      .build(b-> b.setSoundType(SoundType.METAL).setHardness(5.0f).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockInvar");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.IRON, "blockLead", null, beaconBaseProvider)
      .setParentFolder("metals/lead")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockLead")
      .build(b-> b.setSoundType(SoundType.METAL).setHardness(5.0f).setHarvestLevel("pickaxe", 1));
  
  CarvingUtils.addOreGroup("blockLead");
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
void addBlocks(ChiselBlockFactory factory) {
  factory.newBlock(Material.ROCK, "blockNickel", null, beaconBaseProvider)
      .setParentFolder("metals/nickel")
      .newVariation("caution")
      .next("crate")
      .next("thermal")
      .next("machine")
      .next("badGreggy")
      .next("bolted")
      .next("scaffold")
      .addOreDict("blockNickel")
      .build(b-> b.setSoundType(SoundType.METAL).setHardness(5.0f).setHarvestLevel("pickaxe", 1));
  CarvingUtils.addOreGroup("blockNickel");
}

相关文章

Block类方法