Class OffsetTransparentGhostBlockRenderer

java.lang.Object
net.createmod.catnip.ghostblock.GhostBlockRenderer
com.petrolpark.compat.create.client.ghostBlocks.OffsetTransparentGhostBlockRenderer

@ParametersAreNonnullByDefault public class OffsetTransparentGhostBlockRenderer extends net.createmod.catnip.ghostblock.GhostBlockRenderer
Copied from GhostBlockRenderer.transparent() Create source code
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel>
     
    protected final net.minecraft.world.phys.Vec3
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    OffsetTransparentGhostBlockRenderer(net.minecraft.world.phys.Vec3 offset)
     
    protected
    OffsetTransparentGhostBlockRenderer(net.minecraft.world.phys.Vec3 offset, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel> modelGetter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(com.mojang.blaze3d.vertex.PoseStack ms, net.createmod.catnip.render.SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, net.createmod.catnip.ghostblock.GhostBlockParams params)
     
    static final net.createmod.catnip.ghostblock.GhostBlockParams
    show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset)
     
    static final net.createmod.catnip.ghostblock.GhostBlockParams
    show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset, int ttl)
     
    static final net.createmod.catnip.ghostblock.GhostBlockParams
    show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel> modelGetter, int ttl)
     

    Methods inherited from class net.createmod.catnip.ghostblock.GhostBlockRenderer

    standard, transparent

    Methods inherited from class java.lang.Object

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

    • modelGetter

      protected final Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel> modelGetter
    • offset

      protected final net.minecraft.world.phys.Vec3 offset
  • Constructor Details

    • OffsetTransparentGhostBlockRenderer

      protected OffsetTransparentGhostBlockRenderer(net.minecraft.world.phys.Vec3 offset)
    • OffsetTransparentGhostBlockRenderer

      protected OffsetTransparentGhostBlockRenderer(net.minecraft.world.phys.Vec3 offset, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel> modelGetter)
  • Method Details

    • show

      public static final net.createmod.catnip.ghostblock.GhostBlockParams show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset)
    • show

      public static final net.createmod.catnip.ghostblock.GhostBlockParams show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset, int ttl)
    • show

      public static final net.createmod.catnip.ghostblock.GhostBlockParams show(Object slot, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 offset, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.client.resources.model.BakedModel> modelGetter, int ttl)
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack ms, net.createmod.catnip.render.SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, net.createmod.catnip.ghostblock.GhostBlockParams params)
      Specified by:
      render in class net.createmod.catnip.ghostblock.GhostBlockRenderer