Class TrackNodeLocation

java.lang.Object
net.minecraft.core.Vec3i
com.simibubi.create.content.logistics.trains.TrackNodeLocation
All Implemented Interfaces:
Comparable<net.minecraft.core.Vec3i>
Direct Known Subclasses:
TrackNodeLocation.DiscoveredLocation

public class TrackNodeLocation extends net.minecraft.core.Vec3i
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
     

    Fields inherited from class net.minecraft.core.Vec3i

    CODEC, ZERO
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrackNodeLocation(double p_121865_, double p_121866_, double p_121867_)
     
    TrackNodeLocation(net.minecraft.world.phys.Vec3 vec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<net.minecraft.core.BlockPos>
     
    boolean
    equals(Object pOther)
     
    boolean
     
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
     
    net.minecraft.world.phys.Vec3
     
    int
     
    in(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
     
    in(net.minecraft.world.level.Level level)
     
    read(net.minecraft.nbt.CompoundTag tag, DimensionPalette dimensions)
     
    receive(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions)
     
    void
    send(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions)
     
    net.minecraft.nbt.CompoundTag
    write(DimensionPalette dimensions)
     

    Methods inherited from class net.minecraft.core.Vec3i

    above, above, below, below, closerThan, closerToCenterThan, compareTo, cross, distManhattan, distSqr, distToCenterSqr, distToCenterSqr, distToLowCornerSqr, east, east, get, getX, getY, getZ, multiply, north, north, offset, offset, offset, offsetCodec, relative, relative, relative, setX, setY, setZ, south, south, subtract, toShortString, toString, west, west

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • dimension

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension
  • Constructor Details

    • TrackNodeLocation

      public TrackNodeLocation(net.minecraft.world.phys.Vec3 vec)
    • TrackNodeLocation

      public TrackNodeLocation(double p_121865_, double p_121866_, double p_121867_)
  • Method Details

    • in

      public TrackNodeLocation in(net.minecraft.world.level.Level level)
    • in

      public TrackNodeLocation in(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    • getLocation

      public net.minecraft.world.phys.Vec3 getLocation()
    • getDimension

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()
    • equals

      public boolean equals(Object pOther)
      Overrides:
      equals in class net.minecraft.core.Vec3i
    • equalsIgnoreDim

      public boolean equalsIgnoreDim(Object pOther)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class net.minecraft.core.Vec3i
    • write

      public net.minecraft.nbt.CompoundTag write(DimensionPalette dimensions)
    • read

      public static TrackNodeLocation read(net.minecraft.nbt.CompoundTag tag, DimensionPalette dimensions)
    • send

      public void send(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions)
    • receive

      public static TrackNodeLocation receive(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions)
    • allAdjacent

      public Collection<net.minecraft.core.BlockPos> allAdjacent()