Class TrainIconType
java.lang.Object
com.simibubi.create.content.trains.entity.TrainIconType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic Map<net.minecraft.resources.ResourceLocation, TrainIconType> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, 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, net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,TrainIconType> STREAM_CODEC -
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, net.minecraft.client.gui.GuiGraphics graphics, int x, int y) -
getIconWidth
public int getIconWidth(int lengthOrEngine) -
getIconOffset
public int getIconOffset(int lengthOrEngine)
-