master
PF94 2020-11-24 19:25:15 -05:00
parent 71cbf8986e
commit e685a43413
4 changed files with 140 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 ClothGreen extends Tile
{
protected ClothGreen(final int id) {
super(id);
this.tex = 69;
//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;
}
}

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 ClothLime extends Tile
{
protected ClothLime(final int id) {
super(id);
this.tex = 68;
//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;
}
}

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 ClothTeal extends Tile
{
protected ClothTeal(final int id) {
super(id);
this.tex = 68;
//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;
}
}

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 ClothYellow extends Tile
{
protected ClothYellow(final int id) {
super(id);
this.tex = 67;
//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;
}
}