Package codechicken.lib.block.component
Class DirectionComponent
java.lang.Object
codechicken.lib.block.ModularBlock.Component
codechicken.lib.block.component.StateAwareComponent
codechicken.lib.block.component.PropertyComponent<net.minecraft.core.Direction>
codechicken.lib.block.component.DirectionComponent
@Experimental
public class DirectionComponent
extends PropertyComponent<net.minecraft.core.Direction>
Created by covers1624 on 22/7/22.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class codechicken.lib.block.component.PropertyComponent
defaultValue, property -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext ctx) net.minecraft.world.level.block.state.BlockStaterotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation) Methods inherited from class codechicken.lib.block.ModularBlock.Component
getBlock
-
Field Details
-
NONE
-
PLAYER_HORIZONTAL
-
PLAYER_LOOKING_NEAREST
-
FACE_NORMAL
-
-
Constructor Details
-
DirectionComponent
public DirectionComponent(boolean horizontal)
-
-
Method Details
-
withPlacement
-
getStateForPlacement
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext ctx) - Overrides:
getStateForPlacementin classStateAwareComponent
-
rotate
public net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation) - Overrides:
rotatein classStateAwareComponent
-