mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
some blocks, dispenser behaviors, pass through generating flowers
This commit is contained in:
1 parent
f8313ad928
commit
f5b972b4c1
37 files changed
+315
-466
No files matched your search
@@ -10,8 +10,10 @@
|
||||
*/
|
||||
package vazkii.botania.common.block.string;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.world.IBlockReader;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.state.BotaniaStateProps;
|
||||
import vazkii.botania.common.block.tile.string.TileRedString;
|
||||
@@ -22,14 +24,14 @@ import javax.annotation.Nonnull;
|
||||
|
||||
public class BlockRedStringContainer extends BlockRedString {
|
||||
|
||||
public BlockRedStringContainer() {
|
||||
super(LibBlockNames.RED_STRING_CONTAINER);
|
||||
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.FACING, EnumFacing.DOWN));
|
||||
public BlockRedStringContainer(Block.Builder builder) {
|
||||
super(builder);
|
||||
setDefaultState(stateContainer.getBaseState().with(BotaniaStateProps.FACING, EnumFacing.DOWN));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public TileRedString createTileEntity(@Nonnull World world, @Nonnull IBlockState state) {
|
||||
public TileRedString createTileEntity(@Nonnull IBlockState state, @Nonnull IBlockReader world) {
|
||||
return new TileRedStringContainer();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user