Class AbstractPulleyVisual<T extends KineticBlockEntity>

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<T>
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<T>, 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.TickableVisual, dev.engine_room.flywheel.api.visual.Visual, dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual, dev.engine_room.flywheel.lib.visual.SimpleTickableVisual
Direct Known Subclasses:
HosePulleyVisual, RopePulleyVisual

public abstract class AbstractPulleyVisual<T extends KineticBlockEntity> extends ShaftVisual<T> 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

    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
    protected final net.minecraft.core.Direction
     
    protected final com.mojang.math.Axis
     

    Fields inherited from class com.simibubi.create.content.kinetics.base.SingleAxisRotatingVisual

    rainbowMode, rotatingModel

    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
    AbstractPulleyVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext dispatcher, T 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)
     
    protected abstract net.createmod.catnip.render.SpriteShiftEntry
     
    protected abstract dev.engine_room.flywheel.api.instance.Instancer<ScrollInstance>
     
    protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance>
     
    protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance>
     
    protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance>
     
    protected abstract float
    getOffset(float pt)
     
    protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance>
     
    protected abstract boolean
     
    void
    setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector)
     
    void
    updateLight(float partialTick)
     

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

    backtank, of, ofZ, shaft, tick, update

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

    applyOverstressEffect, 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

    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.lib.visual.SimpleTickableVisual

    planTick

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

    delete, update
  • Field Details

    • rotatingAbout

      protected final net.minecraft.core.Direction rotatingAbout
    • rotationAxis

      protected final com.mojang.math.Axis rotationAxis
  • Constructor Details

    • AbstractPulleyVisual

      public AbstractPulleyVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext dispatcher, T blockEntity, float partialTick)
  • Method Details

    • setSectionCollector

      public void setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector)
      Specified by:
      setSectionCollector in interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual
      Overrides:
      setSectionCollector in class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<T extends KineticBlockEntity>
    • getRopeModel

      protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance> getRopeModel()
    • getMagnetModel

      protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance> getMagnetModel()
    • getHalfMagnetModel

      protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance> getHalfMagnetModel()
    • getCoilModel

      protected abstract dev.engine_room.flywheel.api.instance.Instancer<ScrollInstance> getCoilModel()
    • getHalfRopeModel

      protected abstract dev.engine_room.flywheel.api.instance.Instancer<dev.engine_room.flywheel.lib.instance.TransformedInstance> getHalfRopeModel()
    • getOffset

      protected abstract float getOffset(float pt)
    • isRunning

      protected abstract boolean isRunning()
    • getCoilAnimation

      protected abstract net.createmod.catnip.render.SpriteShiftEntry getCoilAnimation()
    • 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
    • updateLight

      public void updateLight(float partialTick)
      Specified by:
      updateLight in interface dev.engine_room.flywheel.api.visual.LightUpdatedVisual
      Overrides:
      updateLight in class SingleAxisRotatingVisual<T extends KineticBlockEntity>
    • 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>
      Overrides:
      collectCrumblingInstances in class SingleAxisRotatingVisual<T extends KineticBlockEntity>
    • _delete

      protected void _delete()
      Overrides:
      _delete in class SingleAxisRotatingVisual<T extends KineticBlockEntity>