Class FlywheelVisual

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<FlywheelBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityVisual<FlywheelBlockEntity>
com.simibubi.create.content.kinetics.flywheel.FlywheelVisual
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<FlywheelBlockEntity>, dev.engine_room.flywheel.api.visual.DynamicVisual, dev.engine_room.flywheel.api.visual.LightUpdatedVisual, dev.engine_room.flywheel.api.visual.SectionTrackedVisual, dev.engine_room.flywheel.api.visual.Visual, dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual

public class FlywheelVisual extends KineticBlockEntityVisual<FlywheelBlockEntity> implements dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
  • Nested Class Summary

    Nested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.DynamicVisual

    dev.engine_room.flywheel.api.visual.DynamicVisual.Context

    Nested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual

    dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.joml.Matrix4f
     
    protected float
     
    protected final RotatingInstance
     
    protected final dev.engine_room.flywheel.lib.instance.TransformedInstance
     

    Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual

    blockEntity, blockState, lightSections, pos, visualPos

    Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    deleted, level, visualizationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlywheelVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, FlywheelBlockEntity blockEntity, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context ctx)
     
    void
    collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
     
    void
    update(float pt)
     
    void
    updateLight(float partialTick)
     

    Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityVisual

    rotationAxis, rotationAxis, rotationOffset, shouldOffset

    Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual

    computePackedLight, doDistanceLimitThisFrame, getVisualPosition, isVisible, relight, relight, relight, relight, relight, relight, setSectionCollector

    Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    delete, instancerProvider, renderOrigin

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual

    planFrame

    Methods inherited from interface dev.engine_room.flywheel.api.visual.Visual

    delete
  • Field Details

    • shaft

      protected final RotatingInstance shaft
    • wheel

      protected final dev.engine_room.flywheel.lib.instance.TransformedInstance wheel
    • lastAngle

      protected float lastAngle
    • baseTransform

      protected final org.joml.Matrix4f baseTransform
  • Constructor Details

    • FlywheelVisual

      public FlywheelVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, FlywheelBlockEntity blockEntity, float partialTick)
  • Method Details

    • beginFrame

      public void beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context ctx)
      Specified by:
      beginFrame in interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
    • update

      public void update(float pt)
      Specified by:
      update in interface dev.engine_room.flywheel.api.visual.Visual
      Overrides:
      update in class dev.engine_room.flywheel.lib.visual.AbstractVisual
    • updateLight

      public void updateLight(float partialTick)
      Specified by:
      updateLight in interface dev.engine_room.flywheel.api.visual.LightUpdatedVisual
    • _delete

      protected void _delete()
      Specified by:
      _delete in class dev.engine_room.flywheel.lib.visual.AbstractVisual
    • collectCrumblingInstances

      public void collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
      Specified by:
      collectCrumblingInstances in interface dev.engine_room.flywheel.api.visual.BlockEntityVisual<FlywheelBlockEntity>