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

    Fields
    Modifier and Type
    Field
    Description
    static final dev.engine_room.flywheel.lib.util.RendererReloadCache<ItemVisual.ItemKey,dev.engine_room.flywheel.api.model.Model>
     
    static 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

    Constructors
    Constructor
    Description
    ItemFrameVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.decoration.ItemFrame entity, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    animate(float partialTick)
     
    void
    beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context ctx)
     
    protected int
    getBlockLightLevel(net.minecraft.core.BlockPos pos)
     
    protected int
    getBlockLightLevelBase(net.minecraft.core.BlockPos pos)
     
    static net.minecraft.client.resources.model.ModelResourceLocation
    getFrameModelResourceLoc(net.minecraft.world.entity.decoration.ItemFrame entity, net.minecraft.world.item.ItemStack item)
     
    protected int
    getSkyLightLevel(net.minecraft.core.BlockPos pos)
     
    static boolean
    shouldVisualize(net.minecraft.world.entity.decoration.ItemFrame entity)
     
    void
    update(float partialTick)
     

    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.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
    • ITEMS

      public static final dev.engine_room.flywheel.lib.util.RendererReloadCache<ItemVisual.ItemKey,dev.engine_room.flywheel.api.model.Model> ITEMS
  • 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:
      beginFrame in interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
    • animate

      public void animate(float partialTick)
    • update

      public void update(float partialTick)
      Specified by:
      update in interface dev.engine_room.flywheel.api.visual.Visual
      Overrides:
      update in class dev.engine_room.flywheel.lib.visual.AbstractVisual
    • _delete

      protected void _delete()
      Specified by:
      _delete in class dev.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)