Class TemporarySpeedSignDemand
java.lang.Object
purplecreate.tramways.content.signs.demands.SignDemand
purplecreate.tramways.content.signs.demands.SpeedSignDemand
purplecreate.tramways.content.signs.demands.TemporarySpeedSignDemand
-
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.SpeedSignDemand
initSettingsGUI, setDefaultSettings, validateSettings
Methods inherited from class purplecreate.tramways.content.signs.demands.SignDemand
isAuxiliary, isManual, register, renderTextInCenter
-
Constructor Details
-
TemporarySpeedSignDemand
public TemporarySpeedSignDemand()
-
-
Method Details
-
getIcon
@Environment(CLIENT) public net.minecraft.world.item.ItemStack getIcon()- Overrides:
getIcon
in classSpeedSignDemand
- 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 classSpeedSignDemand
- 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 classSpeedSignDemand
tag
- The settings for your demand
-