java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<T>
com.simibubi.create.content.contraptions.base.KineticTileInstance<FlywheelTileEntity>
com.simibubi.create.content.contraptions.components.flywheel.FlyWheelInstance
All Implemented Interfaces:
com.jozufozu.flywheel.api.instance.DynamicInstance, com.jozufozu.flywheel.api.instance.Instance, com.jozufozu.flywheel.light.LightListener

public class FlyWheelInstance extends KineticTileInstance<FlywheelTileEntity> implements com.jozufozu.flywheel.api.instance.DynamicInstance
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected final net.minecraft.core.Direction
     
    protected float
     
    protected List<com.jozufozu.flywheel.core.materials.model.ModelData>
     
    protected final net.minecraft.core.Direction
     
    protected float
     
    protected com.jozufozu.flywheel.core.materials.model.ModelData
     
    protected com.jozufozu.flywheel.core.materials.model.ModelData
     
    protected final RotatingData
     
    protected com.jozufozu.flywheel.core.materials.model.ModelData
     
    protected com.jozufozu.flywheel.core.materials.model.ModelData
     
    protected final com.jozufozu.flywheel.core.materials.model.ModelData
     

    Fields inherited from class com.simibubi.create.content.contraptions.base.KineticTileInstance

    axis

    Fields inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance

    blockEntity, blockState, instancePos, pos

    Fields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance

    materialManager, world
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlyWheelInstance(com.jozufozu.flywheel.api.MaterialManager modelManager, FlywheelTileEntity tile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected void
    rotateToFacing(com.jozufozu.flywheel.util.transform.TransformStack buffer, net.minecraft.core.Direction facing)
     
    protected com.jozufozu.flywheel.api.Instancer<RotatingData>
     
    protected void
    transformConnector(com.jozufozu.flywheel.util.transform.TransformStack ms, boolean upper, boolean rotating, float angle, boolean flip)
     
    void
     
    void
     

    Methods inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance

    getInstancePosition, getOrientedMaterial, getTransformMaterial, getVolume, getWorldPosition, shouldReset

    Methods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance

    init, onLightUpdate, relight, relight, relight, relight, status

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.jozufozu.flywheel.api.instance.DynamicInstance

    decreaseFramerateWithDistance

    Methods inherited from interface com.jozufozu.flywheel.api.instance.Instance

    getWorldPosition

    Methods inherited from interface com.jozufozu.flywheel.light.LightListener

    onLightPacket
  • Field Details

    • facing

      protected final net.minecraft.core.Direction facing
    • connection

      protected final net.minecraft.core.Direction connection
    • connectedLeft

      protected boolean connectedLeft
    • connectorAngleMult

      protected float connectorAngleMult
    • shaft

      protected final RotatingData shaft
    • wheel

      protected final com.jozufozu.flywheel.core.materials.model.ModelData wheel
    • connectors

      protected List<com.jozufozu.flywheel.core.materials.model.ModelData> connectors
    • upperRotating

      protected com.jozufozu.flywheel.core.materials.model.ModelData upperRotating
    • lowerRotating

      protected com.jozufozu.flywheel.core.materials.model.ModelData lowerRotating
    • upperSliding

      protected com.jozufozu.flywheel.core.materials.model.ModelData upperSliding
    • lowerSliding

      protected com.jozufozu.flywheel.core.materials.model.ModelData lowerSliding
    • lastAngle

      protected float lastAngle
  • Constructor Details

    • FlyWheelInstance

      public FlyWheelInstance(com.jozufozu.flywheel.api.MaterialManager modelManager, FlywheelTileEntity tile)
  • Method Details

    • beginFrame

      public void beginFrame()
      Specified by:
      beginFrame in interface com.jozufozu.flywheel.api.instance.DynamicInstance
    • update

      public void update()
      Overrides:
      update in class com.jozufozu.flywheel.backend.instancing.AbstractInstance
    • updateLight

      public void updateLight()
      Overrides:
      updateLight in class com.jozufozu.flywheel.backend.instancing.AbstractInstance
    • remove

      public void remove()
      Specified by:
      remove in class com.jozufozu.flywheel.backend.instancing.AbstractInstance
    • shaftModel

      protected com.jozufozu.flywheel.api.Instancer<RotatingData> shaftModel()
    • transformConnector

      protected void transformConnector(com.jozufozu.flywheel.util.transform.TransformStack ms, boolean upper, boolean rotating, float angle, boolean flip)
    • rotateToFacing

      protected void rotateToFacing(com.jozufozu.flywheel.util.transform.TransformStack buffer, net.minecraft.core.Direction facing)