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
ConstructorsConstructorDescriptionComponent(net.minecraft.core.Direction direction, IPartContainer partContainer) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShapegetShape(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.InteractionResultonBlockActivated(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, 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:
getStateIdin interfaceVoxelShapeComponents.IComponent- Overrides:
getStateIdin 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.IComponentGet the shape of this component.- Specified by:
getShapein interfaceVoxelShapeComponents.IComponent- Overrides:
getShapein 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.IComponentWhen this component has been activated.- Specified by:
onBlockActivatedin interfaceVoxelShapeComponents.IComponent- Overrides:
onBlockActivatedin 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.
-