Reorganized Imports/Packages

This commit is contained in:
Frank 2022-05-18 23:56:18 +02:00
parent a8beba9196
commit 770a5b4046
854 changed files with 42775 additions and 41811 deletions

View file

@ -0,0 +1,25 @@
package org.betterx.betterend.blocks;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import org.betterx.betterend.blocks.basis.EndPlantBlock;
public class TerrainPlantBlock extends EndPlantBlock {
private final Block[] ground;
public TerrainPlantBlock(Block... ground) {
super(true);
this.ground = ground;
}
@Override
protected boolean isTerrain(BlockState state) {
for (Block block : ground) {
if (state.is(block)) {
return true;
}
}
return false;
}
}