java.lang.Object
com.simibubi.create.content.logistics.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>
     
  • 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, com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
     

    Methods inherited from class java.lang.Object

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

  • 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, com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
    • getIconWidth

      public int getIconWidth(int lengthOrEngine)
    • getIconOffset

      public int getIconOffset(int lengthOrEngine)