Class TrainIconType

java.lang.Object
com.simibubi.create.content.trains.entity.TrainIconType

public class TrainIconType extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static Map<net.minecraft.resources.ResourceLocation,TrainIconType>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,TrainIconType>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrainIconType(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byId(net.minecraft.resources.ResourceLocation id)
     
     
    int
    getIconOffset(int lengthOrEngine)
     
    int
    getIconWidth(int lengthOrEngine)
     
    net.minecraft.resources.ResourceLocation
     
    static void
    register(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y)
     
    int
    render(int lengthOrEngine, net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
     

    Methods inherited from class java.lang.Object

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

    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,TrainIconType> STREAM_CODEC
    • REGISTRY

      public static Map<net.minecraft.resources.ResourceLocation,TrainIconType> REGISTRY
    • ENGINE

      public static final int ENGINE
      See Also:
    • FLIPPED_ENGINE

      public static final int FLIPPED_ENGINE
      See Also:
  • Constructor Details

    • TrainIconType

      public TrainIconType(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y)
  • Method Details

    • register

      public static void register(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y)
    • byId

      public static TrainIconType byId(net.minecraft.resources.ResourceLocation id)
    • getDefault

      public static TrainIconType getDefault()
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • render

      public int render(int lengthOrEngine, net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
    • getIconWidth

      public int getIconWidth(int lengthOrEngine)
    • getIconOffset

      public int getIconOffset(int lengthOrEngine)