Package dev.engine_room.vanillin.visuals
Class ItemFrameVisual
java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.vanillin.visuals.ItemFrameVisual
- All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.DynamicVisual,dev.engine_room.flywheel.api.visual.EntityVisual<net.minecraft.world.entity.decoration.ItemFrame>,dev.engine_room.flywheel.api.visual.Visual,dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
public class ItemFrameVisual
extends dev.engine_room.flywheel.lib.visual.AbstractVisual
implements dev.engine_room.flywheel.api.visual.EntityVisual<net.minecraft.world.entity.decoration.ItemFrame>, 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.engine_room.flywheel.lib.util.RendererReloadCache<net.minecraft.client.resources.model.ModelResourceLocation,dev.engine_room.flywheel.api.model.Model> Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
deleted, level, visualizationContext -
Constructor Summary
ConstructorsConstructorDescriptionItemFrameVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.decoration.ItemFrame entity, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_delete()voidanimate(float partialTick) voidbeginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context ctx) protected intgetBlockLightLevel(net.minecraft.core.BlockPos pos) protected intgetBlockLightLevelBase(net.minecraft.core.BlockPos pos) static net.minecraft.client.resources.model.ModelResourceLocationgetFrameModelResourceLoc(net.minecraft.world.entity.decoration.ItemFrame entity, net.minecraft.world.item.ItemStack item) protected intgetSkyLightLevel(net.minecraft.core.BlockPos pos) static booleanshouldVisualize(net.minecraft.world.entity.decoration.ItemFrame entity) voidupdate(float partialTick) Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
delete, instancerProvider, renderOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
planFrameMethods inherited from interface dev.engine_room.flywheel.api.visual.Visual
delete
-
Field Details
-
MODEL_RESOURCE_LOCATION
public static final dev.engine_room.flywheel.lib.util.RendererReloadCache<net.minecraft.client.resources.model.ModelResourceLocation,dev.engine_room.flywheel.api.model.Model> MODEL_RESOURCE_LOCATION
-
-
Constructor Details
-
ItemFrameVisual
public ItemFrameVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.decoration.ItemFrame entity, float partialTick)
-
-
Method Details
-
shouldVisualize
public static boolean shouldVisualize(net.minecraft.world.entity.decoration.ItemFrame entity) -
beginFrame
public void beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context ctx) - Specified by:
beginFramein interfacedev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
-
animate
public void animate(float partialTick) -
update
public void update(float partialTick) - Specified by:
updatein interfacedev.engine_room.flywheel.api.visual.Visual- Overrides:
updatein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-
_delete
protected void _delete()- Specified by:
_deletein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-
getSkyLightLevel
protected int getSkyLightLevel(net.minecraft.core.BlockPos pos) -
getBlockLightLevelBase
protected int getBlockLightLevelBase(net.minecraft.core.BlockPos pos) -
getBlockLightLevel
protected int getBlockLightLevel(net.minecraft.core.BlockPos pos) -
getFrameModelResourceLoc
public static net.minecraft.client.resources.model.ModelResourceLocation getFrameModelResourceLoc(net.minecraft.world.entity.decoration.ItemFrame entity, net.minecraft.world.item.ItemStack item)
-