Class ContraptionVisual<E extends AbstractContraptionEntity>
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.LightUpdatedVisual,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.LightUpdatedVisual, 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.ContextNested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual
dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollectorNested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.TickableVisual
dev.engine_room.flywheel.api.visual.TickableVisual.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ActorVisual> protected final List<dev.engine_room.flywheel.api.visual.BlockEntityVisual<?>> 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.VisualEmbeddingprotected static final intprotected longprotected longprotected longprotected longprotected dev.engine_room.flywheel.api.model.Modelprotected dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollectorprotected dev.engine_room.flywheel.lib.instance.TransformedInstanceprotected final dev.engine_room.flywheel.lib.task.PlanMap<dev.engine_room.flywheel.api.visual.TickableVisual, dev.engine_room.flywheel.api.visual.TickableVisual.Context> protected VirtualRenderWorldFields inherited from class dev.engine_room.flywheel.lib.visual.AbstractEntityVisual
entity, visibilityTesterFields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
deleted, level, visualizationContext -
Constructor Summary
ConstructorsConstructorDescriptionContraptionVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, E entity, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_delete()protected voidbeginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context) it.unimi.dsi.fastutil.longs.LongSetprotected booleanprotected booleanstatic intmaxLight(double aabbPos) static intmaxLightSection(double aabbPos) static intminLight(double aabbPos) static intminLightSection(double aabbPos) 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> planTick()voidsetSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector collector) protected <T extends net.minecraft.world.level.block.entity.BlockEntity>
voidsetupVisualizer(T be, float partialTicks) voidupdateLight(float partialTick) Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractEntityVisual
computePackedLight, distanceSquared, getVisualPosition, getVisualPosition, isVisible, relightMethods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
delete, instancerProvider, renderOrigin, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.api.visual.Visual
delete, update
-
Field Details
-
LIGHT_PADDING
protected static final int LIGHT_PADDING- See Also:
-
embedding
protected final dev.engine_room.flywheel.api.visualization.VisualEmbedding embedding -
children
-
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 -
virtualRenderWorld
-
model
protected dev.engine_room.flywheel.api.model.Model model -
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 -
minBlock
protected long minBlock -
maxBlock
protected long maxBlock
-
-
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) -
planTick
public dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.TickableVisual.Context> planTick()- Specified by:
planTickin interfacedev.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:
planFramein interfacedev.engine_room.flywheel.api.visual.DynamicVisual
-
beginFrame
protected void beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context) -
updateLight
public void updateLight(float partialTick) - Specified by:
updateLightin interfacedev.engine_room.flywheel.api.visual.LightUpdatedVisual
-
collectLightSections
public it.unimi.dsi.fastutil.longs.LongSet collectLightSections() -
hasMovedBlocks
protected boolean hasMovedBlocks() -
hasMovedSections
protected boolean hasMovedSections() -
setSectionCollector
public void setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector collector) - Specified by:
setSectionCollectorin interfacedev.engine_room.flywheel.api.visual.SectionTrackedVisual
-
_delete
protected void _delete()- Specified by:
_deletein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-
minLight
public static int minLight(double aabbPos) -
maxLight
public static int maxLight(double aabbPos) -
minLightSection
public static int minLightSection(double aabbPos) -
maxLightSection
public static int maxLightSection(double aabbPos)
-