Class SingleAxisRotatingVisual<T extends KineticBlockEntity>

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<T>
com.simibubi.create.content.kinetics.base.KineticBlockEntityVisual<T>
com.simibubi.create.content.kinetics.base.SingleAxisRotatingVisual<T>
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<T>, dev.engine_room.flywheel.api.visual.LightUpdatedVisual, dev.engine_room.flywheel.api.visual.SectionTrackedVisual, dev.engine_room.flywheel.api.visual.TickableVisual, dev.engine_room.flywheel.api.visual.Visual, dev.engine_room.flywheel.lib.visual.SimpleTickableVisual
Direct Known Subclasses:
ArmVisual, BracketedKineticBlockEntityVisual.LargeCogVisual, ChainConveyorVisual, MixerVisual, ShaftVisual

public class SingleAxisRotatingVisual<T extends KineticBlockEntity> extends KineticBlockEntityVisual<T> implements dev.engine_room.flywheel.lib.visual.SimpleTickableVisual
  • Nested Class Summary

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

    dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector

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

    dev.engine_room.flywheel.api.visual.TickableVisual.Context
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
    protected final RotatingInstance
     

    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
    SingleAxisRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, dev.engine_room.flywheel.api.model.Model model)
     
    SingleAxisRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, net.minecraft.core.Direction from, dev.engine_room.flywheel.api.model.Model model)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    backtank(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick)
     
    void
    collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
     
    static <T extends KineticBlockEntity>
    dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>
    of(dev.engine_room.flywheel.lib.model.baked.PartialModel partial)
     
    static <T extends KineticBlockEntity>
    dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>
    ofZ(dev.engine_room.flywheel.lib.model.baked.PartialModel partial)
    For partial models whose source model is aligned with the Z axis instead of Y
    shaft(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick)
     
    void
    tick(dev.engine_room.flywheel.api.visual.TickableVisual.Context context)
     
    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.SimpleTickableVisual

    planTick

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

    delete
  • Field Details

    • rainbowMode

      public static boolean rainbowMode
    • rotatingModel

      protected final RotatingInstance rotatingModel
  • Constructor Details

    • SingleAxisRotatingVisual

      public SingleAxisRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, dev.engine_room.flywheel.api.model.Model model)
    • SingleAxisRotatingVisual

      public SingleAxisRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, net.minecraft.core.Direction from, dev.engine_room.flywheel.api.model.Model model)
      Parameters:
      from - The source model orientation to rotate away from.
      model - The model to spin.
  • Method Details

    • of

      public static <T extends KineticBlockEntity> dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> of(dev.engine_room.flywheel.lib.model.baked.PartialModel partial)
    • ofZ

      public static <T extends KineticBlockEntity> dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> ofZ(dev.engine_room.flywheel.lib.model.baked.PartialModel partial)
      For partial models whose source model is aligned with the Z axis instead of Y
    • shaft

      public static <T extends KineticBlockEntity> SingleAxisRotatingVisual<T> shaft(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick)
    • backtank

      public static <T extends KineticBlockEntity> SingleAxisRotatingVisual<T> backtank(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick)
    • 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
    • tick

      public void tick(dev.engine_room.flywheel.api.visual.TickableVisual.Context context)
      Specified by:
      tick in interface dev.engine_room.flywheel.lib.visual.SimpleTickableVisual
    • 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<T extends KineticBlockEntity>