Interface IChainableBlock
- All Superinterfaces:
com.simibubi.create.content.kinetics.simpleRelays.ICogWheel,com.simibubi.create.content.kinetics.base.IRotate,com.simibubi.create.content.equipment.wrench.IWrenchable
public interface IChainableBlock
extends com.simibubi.create.content.kinetics.simpleRelays.ICogWheel
-
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
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault floatchainSpeedMultiplier(net.minecraft.world.level.block.state.BlockState state) How many times faster than a regular Cogwheel this Block should spin if connected to a regular Cogwheel.default net.minecraft.world.phys.Vec3getCenterOfRotation(net.minecraft.world.level.block.state.BlockState state) Get the center of the axis around which this Block rotates, relative to the lower corner of the Block Pos (i.e.default floatgetChainRadius(net.minecraft.world.level.block.state.BlockState state) static floatgetPropagatedSpeed(net.minecraft.world.level.block.state.BlockState state) static floatgetRadius(net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.phys.Vec3getRelativeCenterOfRotation(net.minecraft.world.level.block.state.BlockState state) default booleanisChainable(net.minecraft.world.level.block.state.BlockState state) static booleanisStateChainable(net.minecraft.world.level.block.state.BlockState state) Methods inherited from interface com.simibubi.create.content.kinetics.simpleRelays.ICogWheel
isDedicatedCogWheel, isLargeCog, isSmallCogMethods 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
getRotatedBlockState, onSneakWrenched, onWrenched, updateAfterWrenched
-
Field Details
-
CENTER_OFFSET
static final net.minecraft.world.phys.Vec3 CENTER_OFFSET
-
-
Method Details
-
isStateChainable
static boolean isStateChainable(net.minecraft.world.level.block.state.BlockState state) -
getPropagatedSpeed
static float getPropagatedSpeed(net.minecraft.world.level.block.state.BlockState state) -
getRelativeCenterOfRotation
static net.minecraft.world.phys.Vec3 getRelativeCenterOfRotation(net.minecraft.world.level.block.state.BlockState state) -
getRadius
static float getRadius(net.minecraft.world.level.block.state.BlockState state) -
isChainable
default boolean isChainable(net.minecraft.world.level.block.state.BlockState state) -
chainSpeedMultiplier
default float chainSpeedMultiplier(net.minecraft.world.level.block.state.BlockState state) How many times faster than a regular Cogwheel this Block should spin if connected to a regular Cogwheel.- Parameters:
state-- Returns:
-
getCenterOfRotation
default net.minecraft.world.phys.Vec3 getCenterOfRotation(net.minecraft.world.level.block.state.BlockState state) Get the center of the axis around which this Block rotates, relative to the lower corner of the Block Pos (i.e. the center of the block is(0.5, 0.5, 0.5)). -
getChainRadius
default float getChainRadius(net.minecraft.world.level.block.state.BlockState state)
-