Create ClothPurple.java

master
PF94 2020-11-24 18:40:54 -05:00
parent 134316ebbf
commit dc405c814b
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
//
// Decompiled by Procyon v0.5.36
//
package com.mojang.minecraft.level.tile;
import java.util.Random;
import com.mojang.minecraft.level.Level;
public class ClothPurple extends Tile
{
protected ClothPurple(final int id) {
super(id);
this.tex = 74;
//this.setTicking(true);
}
@Override
public void tick(final Level level, final int x, final int y, final int z, final Random random) {
final int below = level.getTile(x, y - 1, z);
if (!level.isLit(x, y, z) || (below != Tile.dirt.id && below != Tile.grass.id)) {
level.setTile(x, y, z, 0);
}
}
@Override
public boolean blocksLight() {
return false;
}
@Override
public boolean isSolid() {
return true;
}
}