Class VoxelShapeComponentsFactoryHandlerCableConnections.Component
java.lang.Object
org.cyclops.integrateddynamics.block.shapes.VoxelShapeComponentsFactoryHandlerCableCenter.Component
org.cyclops.integrateddynamics.block.shapes.VoxelShapeComponentsFactoryHandlerCableConnections.Component
- All Implemented Interfaces:
VoxelShapeComponents.IComponent
- Enclosing class:
- VoxelShapeComponentsFactoryHandlerCableConnections
public static class VoxelShapeComponentsFactoryHandlerCableConnections.Component
extends VoxelShapeComponentsFactoryHandlerCableCenter.Component
-
Constructor Summary
ConstructorDescriptionComponent
(net.minecraft.core.Direction direction, IPartContainer partContainer) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShape
getShape
(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.phys.shapes.CollisionContext selectionContext) Get the shape of this component.getStateId
(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos blockPos) net.minecraft.world.InteractionResult
onBlockActivated
(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, BlockRayTraceResultComponent hit) When this component has been activated.Methods inherited from class org.cyclops.integrateddynamics.block.shapes.VoxelShapeComponentsFactoryHandlerCableCenter.Component
destroy, getBreakingBaseModel, getCloneItemStack, getRaytraceDirection, isRaytraceLastForFace
-
Constructor Details
-
Component
-
-
Method Details
-
getStateId
public String getStateId(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos blockPos) - Specified by:
getStateId
in interfaceVoxelShapeComponents.IComponent
- Overrides:
getStateId
in classVoxelShapeComponentsFactoryHandlerCableCenter.Component
- Parameters:
blockState
- The block state.world
- The world.blockPos
- The position.- Returns:
- Unique identifier for the component's state.
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.phys.shapes.CollisionContext selectionContext) Description copied from interface:VoxelShapeComponents.IComponent
Get the shape of this component.- Specified by:
getShape
in interfaceVoxelShapeComponents.IComponent
- Overrides:
getShape
in classVoxelShapeComponentsFactoryHandlerCableCenter.Component
- Parameters:
blockState
- The block state.world
- The world.blockPos
- The position.selectionContext
- The selection context.- Returns:
- The shape.
-
onBlockActivated
public net.minecraft.world.InteractionResult onBlockActivated(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, BlockRayTraceResultComponent hit) Description copied from interface:VoxelShapeComponents.IComponent
When this component has been activated.- Specified by:
onBlockActivated
in interfaceVoxelShapeComponents.IComponent
- Overrides:
onBlockActivated
in classVoxelShapeComponentsFactoryHandlerCableCenter.Component
- Parameters:
state
- The block state.world
- The world.blockPos
- The position.player
- The player.hand
- The hand.hit
- The ray trace result.- Returns:
- Action result.
-