Class FabricClientXplatImpl

java.lang.Object
at.petrak.hexcasting.fabric.xplat.FabricClientXplatImpl
All Implemented Interfaces:
at.petrak.hexcasting.xplat.IClientXplatAbstractions

public class FabricClientXplatImpl extends Object implements at.petrak.hexcasting.xplat.IClientXplatAbstractions
  • Field Summary

    Fields inherited from interface at.petrak.hexcasting.xplat.IClientXplatAbstractions

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends net.minecraft.world.entity.Entity>
    void
    registerEntityRenderer(net.minecraft.world.entity.EntityType<? extends T> type, net.minecraft.client.renderer.entity.EntityRendererProvider<T> renderer)
     
    <T extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent & net.minecraft.world.inventory.tooltip.TooltipComponent>
    void
     
    void
    registerItemProperty(net.minecraft.world.item.Item item, net.minecraft.resources.ResourceLocation id, net.minecraft.client.renderer.item.ItemPropertyFunction func)
     
    <T extends net.minecraft.core.particles.ParticleOptions>
    void
    registerParticleType(net.minecraft.core.particles.ParticleType<T> type, Function<net.minecraft.client.particle.SpriteSet,net.minecraft.client.particle.ParticleProvider<T>> factory)
     
    void
    restoreLastFilter(net.minecraft.client.renderer.texture.AbstractTexture texture)
     
    void
    sendPacketToServer(at.petrak.hexcasting.common.network.IMessage packet)
     
    void
    setFilterSave(net.minecraft.client.renderer.texture.AbstractTexture texture, boolean filter, boolean mipmap)
     
    void
    setRenderLayer(net.minecraft.world.level.block.Block block, net.minecraft.client.renderer.RenderType type)
     

    Methods inherited from class java.lang.Object

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

    • FabricClientXplatImpl

      public FabricClientXplatImpl()
  • Method Details

    • sendPacketToServer

      public void sendPacketToServer(at.petrak.hexcasting.common.network.IMessage packet)
      Specified by:
      sendPacketToServer in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • setRenderLayer

      public void setRenderLayer(net.minecraft.world.level.block.Block block, net.minecraft.client.renderer.RenderType type)
      Specified by:
      setRenderLayer in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • registerEntityRenderer

      public <T extends net.minecraft.world.entity.Entity> void registerEntityRenderer(net.minecraft.world.entity.EntityType<? extends T> type, net.minecraft.client.renderer.entity.EntityRendererProvider<T> renderer)
      Specified by:
      registerEntityRenderer in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • registerParticleType

      public <T extends net.minecraft.core.particles.ParticleOptions> void registerParticleType(net.minecraft.core.particles.ParticleType<T> type, Function<net.minecraft.client.particle.SpriteSet,net.minecraft.client.particle.ParticleProvider<T>> factory)
      Specified by:
      registerParticleType in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • registerIdentityTooltipMapping

      public <T extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent & net.minecraft.world.inventory.tooltip.TooltipComponent> void registerIdentityTooltipMapping(Class<T> clazz)
      Specified by:
      registerIdentityTooltipMapping in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • registerItemProperty

      public void registerItemProperty(net.minecraft.world.item.Item item, net.minecraft.resources.ResourceLocation id, net.minecraft.client.renderer.item.ItemPropertyFunction func)
      Specified by:
      registerItemProperty in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • setFilterSave

      public void setFilterSave(net.minecraft.client.renderer.texture.AbstractTexture texture, boolean filter, boolean mipmap)
      Specified by:
      setFilterSave in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions
    • restoreLastFilter

      public void restoreLastFilter(net.minecraft.client.renderer.texture.AbstractTexture texture)
      Specified by:
      restoreLastFilter in interface at.petrak.hexcasting.xplat.IClientXplatAbstractions