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
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.phys.Vec3
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    default float
    getChainRadius(net.minecraft.world.level.block.state.BlockState state)
     
    static float
    getPropagatedSpeed(net.minecraft.world.level.block.state.BlockState state)
     
    static float
    getRadius(net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.world.phys.Vec3
    getRelativeCenterOfRotation(net.minecraft.world.level.block.state.BlockState state)
     
    default boolean
    isChainable(net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isStateChainable(net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from interface com.simibubi.create.content.kinetics.simpleRelays.ICogWheel

    isDedicatedCogWheel, isLargeCog, isSmallCog

    Methods inherited from interface com.simibubi.create.content.kinetics.base.IRotate

    getMinimumRequiredSpeedLevel, getRotationAxis, hasShaftTowards, hideStressImpact, showCapacityWithAnnotation

    Methods 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)