Java Code Examples for net.minecraft.state.StateManager#Builder
The following examples show how to use
net.minecraft.state.StateManager#Builder .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CoalGeneratorBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
@Override public void appendProperties(StateManager.Builder<Block, BlockState> stateBuilder) { super.appendProperties(stateBuilder); stateBuilder.add(FACING); stateBuilder.add(FRONT_SIDE_OPTION); stateBuilder.add(BACK_SIDE_OPTION); stateBuilder.add(RIGHT_SIDE_OPTION); stateBuilder.add(LEFT_SIDE_OPTION); stateBuilder.add(TOP_SIDE_OPTION); stateBuilder.add(BOTTOM_SIDE_OPTION); }
Example 2
Source File: RefineryBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
@Override public void appendProperties(StateManager.Builder<Block, BlockState> stateBuilder) { super.appendProperties(stateBuilder); stateBuilder.add(FACING); stateBuilder.add(FRONT_SIDE_OPTION); stateBuilder.add(BACK_SIDE_OPTION); stateBuilder.add(RIGHT_SIDE_OPTION); stateBuilder.add(LEFT_SIDE_OPTION); stateBuilder.add(TOP_SIDE_OPTION); stateBuilder.add(BOTTOM_SIDE_OPTION); }
Example 3
Source File: ElectricCompressorBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
@Override public void appendProperties(StateManager.Builder<Block, BlockState> stateBuilder) { stateBuilder.add(FACING); stateBuilder.add(FRONT_SIDE_OPTION); stateBuilder.add(BACK_SIDE_OPTION); stateBuilder.add(RIGHT_SIDE_OPTION); stateBuilder.add(LEFT_SIDE_OPTION); stateBuilder.add(TOP_SIDE_OPTION); stateBuilder.add(BOTTOM_SIDE_OPTION); }
Example 4
Source File: TinyPumpkinBlock.java From the-hallow with MIT License | 5 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { builder.add(HorizontalFacingBlock.FACING); if (HallowedConfig.TinyPumpkin.waterloggable) { builder.add(Properties.WATERLOGGED); } }
Example 5
Source File: BasicSolarPanelBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
@Override public void appendProperties(StateManager.Builder<Block, BlockState> stateBuilder) { super.appendProperties(stateBuilder); stateBuilder.add(FACING); stateBuilder.add(FRONT_SIDE_OPTION); stateBuilder.add(BACK_SIDE_OPTION); stateBuilder.add(RIGHT_SIDE_OPTION); stateBuilder.add(LEFT_SIDE_OPTION); stateBuilder.add(TOP_SIDE_OPTION); stateBuilder.add(BOTTOM_SIDE_OPTION); }
Example 6
Source File: BloodFluid.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Fluid, FluidState> stateBuilder) { super.appendProperties(stateBuilder); stateBuilder.add(LEVEL); }
Example 7
Source File: AbstractDirectionalBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { super.appendProperties(builder); builder.add(FACING); }
Example 8
Source File: WitchWaterFluid.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Fluid, FluidState> stateBuilder) { super.appendProperties(stateBuilder); stateBuilder.add(LEVEL); }
Example 9
Source File: BlockWrapper.java From Sandbox with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void appendProperties(StateManager.Builder<net.minecraft.block.Block, BlockState> stateFactory$Builder_1) { super.appendProperties(stateFactory$Builder_1); if (block instanceof org.sandboxpowered.sandbox.api.block.FluidBlock) ((BaseBlock) block).appendProperties(((SandboxInternal.StateFactoryBuilder) stateFactory$Builder_1).getSboxBuilder()); }
Example 10
Source File: HallowedGateBlock.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { builder.add(FACING); }
Example 11
Source File: PumpkinPieBlock.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> stateFactoryBuilder) { stateFactoryBuilder.add(BITES); }
Example 12
Source File: TombstoneBlock.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { builder.add(HorizontalFacingBlock.FACING); builder.add(Properties.AGE_1); }
Example 13
Source File: FluidWrapper.java From Sandbox with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void appendProperties(StateManager.Builder<net.minecraft.fluid.Fluid, FluidState> stateFactory$Builder_1) { super.appendProperties(stateFactory$Builder_1); if (fluid != null) fluid.appendProperties(((SandboxInternal.StateFactoryBuilder) stateFactory$Builder_1).getSboxBuilder()); }
Example 14
Source File: AluminumWireBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> StateManager$Builder_1) { super.appendProperties(StateManager$Builder_1); StateManager$Builder_1.add(ATTACHED_NORTH, ATTACHED_EAST, ATTACHED_SOUTH, ATTACHED_WEST, ATTACHED_UP, ATTACHED_DOWN); }
Example 15
Source File: FluidPipeBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { super.appendProperties(builder); builder.add(PULL, COLOR, ATTACHED_NORTH, ATTACHED_EAST, ATTACHED_SOUTH, ATTACHED_WEST, ATTACHED_UP, ATTACHED_DOWN); }
Example 16
Source File: HallowedTreasureChestBlock.java From the-hallow with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> factory) { factory.add(FACING); }
Example 17
Source File: BlockWrapper.java From Sandbox with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void appendProperties(StateManager.Builder<net.minecraft.block.Block, BlockState> stateFactory$Builder_1) { super.appendProperties(stateFactory$Builder_1); if (block instanceof BaseBlock) ((BaseBlock) block).appendProperties(((SandboxInternal.StateFactoryBuilder) stateFactory$Builder_1).getSboxBuilder()); }
Example 18
Source File: MoonBerryBushBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override public void appendProperties(StateManager.Builder<Block, BlockState> stateBuilder) { stateBuilder.add(AGE); }
Example 19
Source File: CavernousVineBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { super.appendProperties(builder); builder.add(WATERLOGGED).add(VINES); }
Example 20
Source File: AbstractHorizontalDirectionalBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { super.appendProperties(builder); builder.add(FACING); }