Interface VfxFrame


public interface VfxFrame
The frame a VfxRenderer is drawing into.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.Vec3
     
    default VfxDraw
    draw(VfxMaterial material)
    The drawer for a material, in VfxLayer.DEFAULT.
    draw(VfxMaterial material, VfxLayer layer)
    The drawer for a material in a layer, which sets what the shapes cover and what covers them (see VfxLayer).
    net.minecraft.client.multiplayer.ClientLevel
     
    float
    How far the frame is between the last tick and the next, 0 to 1.
    float
    Seconds since the client started, for animation that shouldn't step with ticks.
  • Method Details

    • level

      net.minecraft.client.multiplayer.ClientLevel level()
    • partialTick

      float partialTick()
      How far the frame is between the last tick and the next, 0 to 1.
    • time

      float time()
      Seconds since the client started, for animation that shouldn't step with ticks.
    • cameraPosition

      net.minecraft.world.phys.Vec3 cameraPosition()
    • draw

      default VfxDraw draw(VfxMaterial material)
      The drawer for a material, in VfxLayer.DEFAULT. Shapes of equal materials are batched, whoever draws them.
    • draw

      VfxDraw draw(VfxMaterial material, VfxLayer layer)
      The drawer for a material in a layer, which sets what the shapes cover and what covers them (see VfxLayer). Shapes of equal materials in equal layers are batched, whoever draws them.