Class VirtualRenderHelper

java.lang.Object
net.createmod.ponder.render.VirtualRenderHelper

public class VirtualRenderHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.neoforged.neoforge.client.model.data.ModelData
     
    static final net.neoforged.neoforge.client.model.data.ModelProperty<Boolean>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static dev.engine_room.flywheel.api.model.Model
    blockModel(net.minecraft.world.level.block.state.BlockState state)
    A copy of Models.block(BlockState), but with virtual model data passed in.
    static boolean
    isVirtual(net.neoforged.neoforge.client.model.data.ModelData data)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VIRTUAL_PROPERTY

      public static final net.neoforged.neoforge.client.model.data.ModelProperty<Boolean> VIRTUAL_PROPERTY
    • VIRTUAL_DATA

      public static final net.neoforged.neoforge.client.model.data.ModelData VIRTUAL_DATA
  • Constructor Details

    • VirtualRenderHelper

      public VirtualRenderHelper()
  • Method Details

    • isVirtual

      public static boolean isVirtual(net.neoforged.neoforge.client.model.data.ModelData data)
    • blockModel

      public static dev.engine_room.flywheel.api.model.Model blockModel(net.minecraft.world.level.block.state.BlockState state)
      A copy of Models.block(BlockState), but with virtual model data passed in.
      Parameters:
      state - The block state to get the model for.
      Returns:
      The model for the given block state.