Class WhistleSignDemand

java.lang.Object
purplecreate.tramways.content.signs.demands.SignDemand
purplecreate.tramways.content.signs.demands.WhistleSignDemand

public class WhistleSignDemand extends SignDemand
  • Constructor Details

    • WhistleSignDemand

      public WhistleSignDemand()
  • Method Details

    • sendWhistlePacket

      public static void sendWhistlePacket(com.simibubi.create.content.trains.entity.Train train, boolean isHonk)
    • getIcon

      @Environment(CLIENT) public net.minecraft.world.item.ItemStack getIcon()
      Specified by:
      getIcon in class SignDemand
      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 class SignDemand
    • 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 class SignDemand
      Parameters:
      tag - The settings for your demand
      train - 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 class SignDemand
      tag - The settings for your demand