Class ChainDriveBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.simibubi.create.content.kinetics.base.KineticBlock
com.simibubi.create.content.kinetics.base.RotatedPillarKineticBlock
com.simibubi.create.content.kinetics.chainDrive.ChainDriveBlock
- All Implemented Interfaces:
TransformableBlock,IWrenchable,IRotate,IBE<KineticBlockEntity>,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IBlockExtension
- Direct Known Subclasses:
ChainGearshiftBlock
public class ChainDriveBlock
extends RotatedPillarKineticBlock
implements IBE<KineticBlockEntity>, TransformableBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface com.simibubi.create.content.kinetics.base.IRotate
IRotate.SpeedLevel, IRotate.StressImpact -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.Property<ChainDriveBlock.Part> Fields inherited from class com.simibubi.create.content.kinetics.base.RotatedPillarKineticBlock
AXISFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, CODEC, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionChainDriveBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareBlocksConnected(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState other, net.minecraft.core.Direction facing) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) net.minecraft.world.level.block.entity.BlockEntityType<? extends KineticBlockEntity> protected static net.minecraft.core.Direction.AxisgetConnectionAxis(net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.level.material.PushReactiongetPistonPushReaction(net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.level.block.state.BlockStategetRotatedBlockState(net.minecraft.world.level.block.state.BlockState originalState, net.minecraft.core.Direction targetedFace) net.minecraft.core.Direction.AxisgetRotationAxis(net.minecraft.world.level.block.state.BlockState state) static floatnet.minecraft.world.level.block.state.BlockStategetStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) booleanhasShaftTowards(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) net.minecraft.world.level.block.state.BlockStatemirror(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Mirror pMirror) protected net.minecraft.world.level.block.state.BlockStatereversePart(net.minecraft.world.level.block.state.BlockState pState) net.minecraft.world.level.block.state.BlockStaterotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rot) protected net.minecraft.world.level.block.state.BlockStaterotate(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Rotation rot, net.minecraft.core.Direction.Axis rotAxis) booleanshouldCheckWeakPower(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.SignalGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) net.minecraft.world.level.block.state.BlockStatetransform(net.minecraft.world.level.block.state.BlockState state, StructureTransform transform) net.minecraft.world.level.block.state.BlockStateupdateAfterWrenched(net.minecraft.world.level.block.state.BlockState newState, net.minecraft.world.item.context.UseOnContext context) net.minecraft.world.level.block.state.BlockStateupdateShape(net.minecraft.world.level.block.state.BlockState stateIn, net.minecraft.core.Direction face, net.minecraft.world.level.block.state.BlockState neighbour, net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos currentPos, net.minecraft.core.BlockPos facingPos) Methods inherited from class com.simibubi.create.content.kinetics.base.RotatedPillarKineticBlock
getPreferredAxisMethods inherited from class com.simibubi.create.content.kinetics.base.KineticBlock
areStatesKineticallyEquivalent, getParticleInitialRadius, getParticleTargetRadius, onPlace, onRemove, setPlacedBy, updateIndirectNeighbourShapesMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, codec, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface com.simibubi.create.foundation.block.IBE
getBlockEntity, getBlockEntityOptional, getTicker, newBlockEntity, onBlockEntityUse, onBlockEntityUseItemOn, withBlockEntityDoMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface com.simibubi.create.content.kinetics.base.IRotate
getMinimumRequiredSpeedLevel, hideStressImpact, showCapacityWithAnnotationMethods inherited from interface com.simibubi.create.content.equipment.wrench.IWrenchable
onSneakWrenched, onWrenched
-
Field Details
-
PART
public static final net.minecraft.world.level.block.state.properties.Property<ChainDriveBlock.Part> PART -
CONNECTED_ALONG_FIRST_COORDINATE
public static final net.minecraft.world.level.block.state.properties.BooleanProperty CONNECTED_ALONG_FIRST_COORDINATE
-
-
Constructor Details
-
ChainDriveBlock
public ChainDriveBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
shouldCheckWeakPower
public boolean shouldCheckWeakPower(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.SignalGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) - Specified by:
shouldCheckWeakPowerin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getPistonPushReaction
public net.minecraft.world.level.material.PushReaction getPistonPushReaction(net.minecraft.world.level.block.state.BlockState state) - Specified by:
getPistonPushReactionin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
createBlockStateDefinition
protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classRotatedPillarKineticBlock
-
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classRotatedPillarKineticBlock
-
updateShape
public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState stateIn, net.minecraft.core.Direction face, net.minecraft.world.level.block.state.BlockState neighbour, net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos currentPos, net.minecraft.core.BlockPos facingPos) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getRotatedBlockState
public net.minecraft.world.level.block.state.BlockState getRotatedBlockState(net.minecraft.world.level.block.state.BlockState originalState, net.minecraft.core.Direction targetedFace) - Specified by:
getRotatedBlockStatein interfaceIWrenchable
-
updateAfterWrenched
public net.minecraft.world.level.block.state.BlockState updateAfterWrenched(net.minecraft.world.level.block.state.BlockState newState, net.minecraft.world.item.context.UseOnContext context) - Specified by:
updateAfterWrenchedin interfaceIWrenchable
-
hasShaftTowards
public boolean hasShaftTowards(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) - Specified by:
hasShaftTowardsin interfaceIRotate- Overrides:
hasShaftTowardsin classKineticBlock
-
getRotationAxis
public net.minecraft.core.Direction.Axis getRotationAxis(net.minecraft.world.level.block.state.BlockState state) - Specified by:
getRotationAxisin interfaceIRotate
-
areBlocksConnected
public static boolean areBlocksConnected(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState other, net.minecraft.core.Direction facing) -
getConnectionAxis
protected static net.minecraft.core.Direction.Axis getConnectionAxis(net.minecraft.world.level.block.state.BlockState state) -
getRotationSpeedModifier
-
getBlockEntityClass
- Specified by:
getBlockEntityClassin interfaceIBE<KineticBlockEntity>
-
getBlockEntityType
public net.minecraft.world.level.block.entity.BlockEntityType<? extends KineticBlockEntity> getBlockEntityType()- Specified by:
getBlockEntityTypein interfaceIBE<KineticBlockEntity>
-
rotate
public net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rot) - Overrides:
rotatein classRotatedPillarKineticBlock
-
rotate
protected net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Rotation rot, net.minecraft.core.Direction.Axis rotAxis) -
mirror
public net.minecraft.world.level.block.state.BlockState mirror(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Mirror pMirror) - Overrides:
mirrorin classnet.minecraft.world.level.block.state.BlockBehaviour
-
reversePart
protected net.minecraft.world.level.block.state.BlockState reversePart(net.minecraft.world.level.block.state.BlockState pState) -
transform
public net.minecraft.world.level.block.state.BlockState transform(net.minecraft.world.level.block.state.BlockState state, StructureTransform transform) - Specified by:
transformin interfaceTransformableBlock
-