Class StationMarker

java.lang.Object
com.simibubi.create.content.trains.station.StationMarker

public class StationMarker extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    StationMarker(net.minecraft.core.BlockPos source, net.minecraft.core.BlockPos target, net.minecraft.network.chat.Component name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.saveddata.maps.MapDecoration
    createStationDecoration(byte x, byte y, Optional<net.minecraft.network.chat.Component> name)
     
    boolean
     
    fromWorld(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
     
     
    net.minecraft.network.chat.Component
     
    net.minecraft.core.BlockPos
     
    net.minecraft.core.BlockPos
     
    int
     
    load(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.nbt.CompoundTag
    save(net.minecraft.core.HolderLookup.Provider registries)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StationMarker

      public StationMarker(net.minecraft.core.BlockPos source, net.minecraft.core.BlockPos target, net.minecraft.network.chat.Component name)
  • Method Details

    • load

      public static StationMarker load(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
    • fromWorld

      public static StationMarker fromWorld(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.core.HolderLookup.Provider registries)
    • getSource

      public net.minecraft.core.BlockPos getSource()
    • getTarget

      public net.minecraft.core.BlockPos getTarget()
    • getName

      public net.minecraft.network.chat.Component getName()
    • getId

      public String getId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • createStationDecoration

      public static net.minecraft.world.level.saveddata.maps.MapDecoration createStationDecoration(byte x, byte y, Optional<net.minecraft.network.chat.Component> name)