Class TemporaryEndSignDemand
java.lang.Object
purplecreate.tramways.content.signs.demands.SignDemand
purplecreate.tramways.content.signs.demands.TemporaryEndSignDemand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(net.minecraft.nbt.CompoundTag tag, com.simibubi.create.content.trains.entity.Train train, double distance) This function is ran every tick on the run-up to and whilst the train runs over the track pointnet.minecraft.world.item.ItemStack
getIcon()
dev.engine_room.flywheel.lib.model.baked.PartialModel
getSignFace
(TramSignBlock.SignType signType) void
render
(TramSignBlock.SignType signType, net.minecraft.nbt.CompoundTag tag, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) Use this to render text or symbols on the signMethods inherited from class purplecreate.tramways.content.signs.demands.SignDemand
initSettingsGUI, isAuxiliary, isManual, register, renderTextInCenter, setDefaultSettings, validateSettings
-
Constructor Details
-
TemporaryEndSignDemand
public TemporaryEndSignDemand()
-
-
Method Details
-
getIcon
@Environment(CLIENT) public net.minecraft.world.item.ItemStack getIcon()- Specified by:
getIcon
in classSignDemand
- Returns:
- an icon to be shown in the settings menu
-
getSignFace
@Environment(CLIENT) public dev.engine_room.flywheel.lib.model.baked.PartialModel getSignFace(TramSignBlock.SignType signType) - Overrides:
getSignFace
in classSignDemand
-
execute
public void execute(net.minecraft.nbt.CompoundTag tag, com.simibubi.create.content.trains.entity.Train train, double distance) Description copied from class:SignDemand
This function is ran every tick on the run-up to and whilst the train runs over the track point- Overrides:
execute
in classSignDemand
- Parameters:
tag
- The settings for your demandtrain
- The train running past the sign
-
render
@Environment(CLIENT) public void render(TramSignBlock.SignType signType, net.minecraft.nbt.CompoundTag tag, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) Description copied from class:SignDemand
Use this to render text or symbols on the sign
Tip: You can use
SignDemand.renderTextInCenter
if you just need something simple- Overrides:
render
in classSignDemand
tag
- The settings for your demand
-