Create ClothPurple.java
parent
134316ebbf
commit
dc405c814b
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue