Interface IAssemblageBlock
- All Superinterfaces:
petrolpark.mc.library.compat.create.core.world.block.composite.ICompositeKineticBlock,IFaceAlignedCogWheelBlock,com.simibubi.create.content.kinetics.base.IRotate,IStateDependentCogWheelBlock,com.simibubi.create.content.equipment.wrench.IWrenchable,com.simibubi.create.api.contraption.transformable.TransformableBlock
- All Known Implementing Classes:
AssemblageBlock,EncasedAssemblageBlock,EncasedSeparateShaftHalvesAssemblageBlock,EncasedSingleShaftAssemblageBlock,SeparateShaftHalvesAssemblageBlock,SingleShaftAssemblageBlock
public interface IAssemblageBlock
extends IStateDependentCogWheelBlock, IFaceAlignedCogWheelBlock, petrolpark.mc.library.compat.create.core.world.block.composite.ICompositeKineticBlock, com.simibubi.create.api.contraption.transformable.TransformableBlock
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.simibubi.create.content.kinetics.base.IRotate
com.simibubi.create.content.kinetics.base.IRotate.SpeedLevel, com.simibubi.create.content.kinetics.base.IRotate.StressImpact -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.core.Direction.Axis> static final net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog> static final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final Collection<net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog>> static final net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog> static final Collection<net.minecraft.world.level.block.state.properties.BooleanProperty> static final net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog> static final net.minecraft.world.level.block.state.properties.BooleanProperty -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanDiagonalBevelCogWheelSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos) default CogTypegetCogType(net.minecraft.world.level.block.state.BlockState state) default net.minecraft.world.level.block.state.BlockStategetRotatedBlockState(net.minecraft.world.level.block.state.BlockState originalState, net.minecraft.core.Direction targetedFace) getSet()getTargetedKineticPart(AssemblageBlockEntity be, net.minecraft.world.entity.player.Player player) booleanhasBottomShaft(net.minecraft.world.level.block.state.BlockState state) booleanhasTopShaft(net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.level.block.state.BlockStateinvert(net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.level.block.state.BlockStatemirror(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Mirror mirror) static net.minecraft.world.level.block.state.BlockStaterotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation) default net.minecraft.world.level.block.state.BlockStatetransform(net.minecraft.world.level.block.state.BlockState state, com.simibubi.create.content.contraptions.StructureTransform transform) Methods inherited from interface petrolpark.mc.library.compat.create.core.world.block.composite.ICompositeKineticBlock
onPlace, onWrenched, setPlacedBy, updateIndirectNeighbourShapesMethods inherited from interface com.simibubi.create.content.kinetics.base.IRotate
getMinimumRequiredSpeedLevel, getRotationAxis, hasShaftTowards, hideStressImpact, showCapacityWithAnnotationMethods inherited from interface com.simibubi.create.content.equipment.wrench.IWrenchable
onSneakWrenched, updateAfterWrenched
-
Field Details
-
AXIS
static final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.core.Direction.Axis> AXIS -
TOP_SHAFT_HALF
static final net.minecraft.world.level.block.state.properties.BooleanProperty TOP_SHAFT_HALF -
BOTTOM_SHAFT_HALF
static final net.minecraft.world.level.block.state.properties.BooleanProperty BOTTOM_SHAFT_HALF -
TOP_COG
-
MIDDLE_COG
static final net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog> MIDDLE_COG -
BOTTOM_COG
static final net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog> BOTTOM_COG -
SHAFT_HALF_PROPERTIES
static final Collection<net.minecraft.world.level.block.state.properties.BooleanProperty> SHAFT_HALF_PROPERTIES -
COG_PROPERTIES
static final Collection<net.minecraft.world.level.block.state.properties.EnumProperty<AssemblageCog>> COG_PROPERTIES
-
-
Method Details
-
getSet
AssemblageSet getSet() -
hasTopShaft
boolean hasTopShaft(net.minecraft.world.level.block.state.BlockState state) -
hasBottomShaft
boolean hasBottomShaft(net.minecraft.world.level.block.state.BlockState state) -
getTargetedKineticPart
@Nullable AssemblageBlockEntity.AssemblageBlockEntityPart getTargetedKineticPart(AssemblageBlockEntity be, net.minecraft.world.entity.player.Player player) -
getCogType
- Specified by:
getCogTypein interfaceIStateDependentCogWheelBlock
-
canDiagonalBevelCogWheelSurvive
default boolean canDiagonalBevelCogWheelSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos) -
getRotatedBlockState
default net.minecraft.world.level.block.state.BlockState getRotatedBlockState(net.minecraft.world.level.block.state.BlockState originalState, net.minecraft.core.Direction targetedFace) - Specified by:
getRotatedBlockStatein interfacecom.simibubi.create.content.equipment.wrench.IWrenchable
-
rotate
static net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation) -
mirror
static net.minecraft.world.level.block.state.BlockState mirror(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.Mirror mirror) -
invert
static net.minecraft.world.level.block.state.BlockState invert(net.minecraft.world.level.block.state.BlockState state) -
transform
default net.minecraft.world.level.block.state.BlockState transform(net.minecraft.world.level.block.state.BlockState state, com.simibubi.create.content.contraptions.StructureTransform transform) - Specified by:
transformin interfacecom.simibubi.create.api.contraption.transformable.TransformableBlock
-