예제 #1
0
 @Override
 public void dropBlockAsItemWithChance(
     World p_149690_1_,
     int p_149690_2_,
     int p_149690_3_,
     int p_149690_4_,
     int p_149690_5_,
     float p_149690_6_,
     int p_149690_7_) {
   super.dropBlockAsItemWithChance(
       p_149690_1_, p_149690_2_, p_149690_3_, p_149690_4_, p_149690_5_, p_149690_6_, 0);
 }
예제 #2
0
  @Override
  public void updateTick(
      World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) {
    super.updateTick(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_, p_149674_5_);

    if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) >= 9) {
      int l = p_149674_1_.getBlockMetadata(p_149674_2_, p_149674_3_, p_149674_4_);

      if (l < 7) {
        float f = this.func_149864_n(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_);

        if (p_149674_5_.nextInt((int) (25.0F / f) + 1) == 0) {
          ++l;
          p_149674_1_.setBlockMetadataWithNotify(p_149674_2_, p_149674_3_, p_149674_4_, l, 2);
        }
      }
    }
  }