Interface ResearchIcon

All Known Implementing Classes:
ItemResearchIcon, SpriteResearchIcon, TextResearchIcon

public interface ResearchIcon
The ResearchIcon is a utility interface containing the id as well as the object that renders for the icon.

The actual rendering of the icon is handled on the client side through a ClientResearchIcon class

The default Research Icon implementation is ItemResearchIcon which is used in SimpleResearch

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<ResearchIcon>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ResearchIcon>
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.resources.ResourceLocation
    id()
     
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<ResearchIcon> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ResearchIcon> STREAM_CODEC
  • Method Details

    • id

      net.minecraft.resources.ResourceLocation id()
      Returns:
      The id of this type of Research Icon. Usually this is just a constant in the Research Icon class
    • getSerializer

      ResearchIconSerializer<? extends ResearchIcon> getSerializer()