Class TrainIconType
java.lang.Object
com.simibubi.create.content.logistics.trains.entity.TrainIconType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic Map<net.minecraft.resources.ResourceLocation,TrainIconType> -
Constructor Summary
ConstructorsConstructorDescriptionTrainIconType(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionstatic TrainIconTypebyId(net.minecraft.resources.ResourceLocation id) static TrainIconTypeintgetIconOffset(int lengthOrEngine) intgetIconWidth(int lengthOrEngine) net.minecraft.resources.ResourceLocationgetId()static voidregister(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation sheet, int x, int y) intrender(int lengthOrEngine, com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
-
Field Details
-
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
-
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)
-