Class TemporarySpeedSignDemand
java.lang.Object
purplecreate.tramways.content.signs.demands.SignDemand
purplecreate.tramways.content.signs.demands.SpeedSignDemand
purplecreate.tramways.content.signs.demands.TemporarySpeedSignDemand
-
Nested Class Summary
Nested classes/interfaces inherited from class purplecreate.tramways.content.signs.demands.SignDemand
SignDemand.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(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.ItemStackgetIcon()dev.engine_room.flywheel.lib.model.baked.PartialModelgetSignFace(TramSignBlock.SignType signType) voidrender(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, validateSettingsMethods 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:
getIconin 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:
getSignFacein classSignDemand
-
execute
public SignDemand.Result execute(net.minecraft.nbt.CompoundTag tag, com.simibubi.create.content.trains.entity.Train train, double distance) Description copied from class:SignDemandThis function is ran every tick on the run-up to and whilst the train runs over the track point- Overrides:
executein 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:SignDemandUse this to render text or symbols on the sign
Tip: You can use
SignDemand.renderTextInCenterif you just need something simple- Overrides:
renderin classSpeedSignDemandtag- The settings for your demand
-