Files
shitty-beta1.7.3-server-sof…/src/main/java/net/minecraft/server/BlockFlower.java
T
evets 82192a4802
build-and-test / build (push) Waiting to run
Java-Compatibility / build (17) (push) Waiting to run
Java-Compatibility / build (21) (push) Waiting to run
Release Workflow / build-and-release (push) Waiting to run
Initial commit
2026-09-20 01:56:07 +01:00

56 lines
1.4 KiB
Java

package net.minecraft.server;
import java.util.Random;
public class BlockFlower extends Block {
protected BlockFlower(int i, int j) {
super(i, Material.PLANT);
this.textureId = j;
this.a(true);
float f = 0.2F;
this.a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 3.0F, 0.5F + f);
}
public boolean canPlace(World world, int i, int j, int k) {
return super.canPlace(world, i, j, k) && this.c(world.getTypeId(i, j - 1, k));
}
protected boolean c(int i) {
return i == Block.GRASS.id || i == Block.DIRT.id || i == Block.SOIL.id;
}
public void doPhysics(World world, int i, int j, int k, int l) {
super.doPhysics(world, i, j, k, l);
this.g(world, i, j, k);
}
public void a(World world, int i, int j, int k, Random random) {
this.g(world, i, j, k);
}
protected final void g(World world, int i, int j, int k) {
if (!this.f(world, i, j, k)) {
this.g(world, i, j, k, world.getData(i, j, k));
world.setTypeId(i, j, k, 0);
}
}
public boolean f(World world, int i, int j, int k) {
return (world.k(i, j, k) >= 8 || world.isChunkLoaded(i, j, k)) && this.c(world.getTypeId(i, j - 1, k));
}
public AxisAlignedBB e(World world, int i, int j, int k) {
return null;
}
public boolean a() {
return false;
}
public boolean b() {
return false;
}
}