java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractEntityVisual<E>
com.simibubi.create.content.contraptions.render.ContraptionVisual<E>
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.DynamicVisual, dev.engine_room.flywheel.api.visual.EntityVisual<E>, dev.engine_room.flywheel.api.visual.SectionTrackedVisual, dev.engine_room.flywheel.api.visual.ShaderLightVisual, dev.engine_room.flywheel.api.visual.TickableVisual, dev.engine_room.flywheel.api.visual.Visual
Direct Known Subclasses:
CarriageContraptionVisual

public class ContraptionVisual<E extends AbstractContraptionEntity> extends dev.engine_room.flywheel.lib.visual.AbstractEntityVisual<E> implements dev.engine_room.flywheel.api.visual.DynamicVisual, dev.engine_room.flywheel.api.visual.TickableVisual, dev.engine_room.flywheel.api.visual.ShaderLightVisual
  • 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 List<ActorVisual>
     
    protected final List<dev.engine_room.flywheel.api.visual.BlockEntityVisual<?>>
     
    protected static final int
     
    protected final dev.engine_room.flywheel.lib.task.PlanMap<dev.engine_room.flywheel.api.visual.DynamicVisual,dev.engine_room.flywheel.api.visual.DynamicVisual.Context>
     
    protected final dev.engine_room.flywheel.api.visualization.VisualEmbedding
     
    protected int
     
    protected int
     
    protected int
     
    protected long
     
    protected long
     
    protected dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector
     
    protected dev.engine_room.flywheel.lib.instance.TransformedInstance
     
    protected final dev.engine_room.flywheel.lib.task.PlanMap<dev.engine_room.flywheel.api.visual.TickableVisual,dev.engine_room.flywheel.api.visual.TickableVisual.Context>
     

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

    entity, visibilityTester

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

    deleted, level, visualizationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContraptionVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, E entity, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context)
     
    dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.DynamicVisual.Context>
     
    dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.TickableVisual.Context>
     
    void
    setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector collector)
     
    protected void
    setupActor(org.apache.commons.lang3.tuple.MutablePair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,MovementContext> actor, VirtualRenderWorld renderLevel)
     
    protected <T extends net.minecraft.world.level.block.entity.BlockEntity>
    void
    setupVisualizer(T be, float partialTicks)
     

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

    computePackedLight, distanceSquared, getVisualPosition, getVisualPosition, isVisible, relight

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

    delete, instancerProvider, renderOrigin, update

    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.api.visual.Visual

    delete, update
  • Field Details

    • DEFAULT_LIGHT_PADDING

      protected static final int DEFAULT_LIGHT_PADDING
      See Also:
    • embedding

      protected final dev.engine_room.flywheel.api.visualization.VisualEmbedding embedding
    • children

      protected final List<dev.engine_room.flywheel.api.visual.BlockEntityVisual<?>> children
    • actors

      protected final List<ActorVisual> actors
    • dynamicVisuals

      protected final dev.engine_room.flywheel.lib.task.PlanMap<dev.engine_room.flywheel.api.visual.DynamicVisual,dev.engine_room.flywheel.api.visual.DynamicVisual.Context> dynamicVisuals
    • tickableVisuals

      protected final dev.engine_room.flywheel.lib.task.PlanMap<dev.engine_room.flywheel.api.visual.TickableVisual,dev.engine_room.flywheel.api.visual.TickableVisual.Context> tickableVisuals
    • structure

      protected dev.engine_room.flywheel.lib.instance.TransformedInstance structure
    • sectionCollector

      protected dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector
    • minSection

      protected long minSection
    • maxSection

      protected long maxSection
    • lightPaddingBlocks

      protected int lightPaddingBlocks
    • lastStructureVersion

      protected int lastStructureVersion
    • lastVersionChildren

      protected int lastVersionChildren
  • Constructor Details

    • ContraptionVisual

      public ContraptionVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, E entity, float partialTick)
  • Method Details

    • setupVisualizer

      protected <T extends net.minecraft.world.level.block.entity.BlockEntity> void setupVisualizer(T be, float partialTicks)
    • setupActor

      protected void setupActor(org.apache.commons.lang3.tuple.MutablePair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,MovementContext> actor, VirtualRenderWorld renderLevel)
    • planTick

      public dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.TickableVisual.Context> planTick()
      Specified by:
      planTick in interface dev.engine_room.flywheel.api.visual.TickableVisual
    • planFrame

      public dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.DynamicVisual.Context> planFrame()
      Specified by:
      planFrame in interface dev.engine_room.flywheel.api.visual.DynamicVisual
    • beginFrame

      protected void beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context)
    • setSectionCollector

      public void setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector collector)
      Specified by:
      setSectionCollector in interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual
    • _delete

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