All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.BlockSeaLantern Maven / Gradle / Ivy

package net.minecraft.server;

import java.util.Random;

public class BlockSeaLantern extends Block {

  public BlockSeaLantern(Material material) {
    super(material);
    this.a(CreativeModeTab.b);
  }

  public int a(Random random) {
    return 2 + random.nextInt(2);
  }

  public int getDropCount(int i, Random random) {
    return MathHelper.clamp(this.a(random) + random.nextInt(i + 1), 1, 5);
  }

  public Item getDropType(IBlockData iblockdata, Random random, int i) {
    return Items.PRISMARINE_CRYSTALS;
  }

  public MaterialMapColor g(IBlockData iblockdata) {
    return MaterialMapColor.p;
  }

  protected boolean I() {
    return true;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy