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 -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>Fields inherited from class net.minecraft.core.Vec3i
CODEC, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionTrackNodeLocation(double p_121865_, double p_121866_, double p_121867_) TrackNodeLocation(net.minecraft.world.phys.Vec3 vec) -
Method Summary
Modifier and TypeMethodDescriptionCollection<net.minecraft.core.BlockPos>booleanbooleanequalsIgnoreDim(Object pOther) net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>net.minecraft.world.phys.Vec3inthashCode()in(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) in(net.minecraft.world.level.Level level) static TrackNodeLocationread(net.minecraft.nbt.CompoundTag tag, DimensionPalette dimensions) static TrackNodeLocationreceive(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions) voidsend(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions) net.minecraft.nbt.CompoundTagwrite(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
-
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
-
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
- Overrides:
equalsin classnet.minecraft.core.Vec3i
-
equalsIgnoreDim
-
hashCode
public int hashCode()- Overrides:
hashCodein classnet.minecraft.core.Vec3i
-
write
-
read
public static TrackNodeLocation read(net.minecraft.nbt.CompoundTag tag, DimensionPalette dimensions) -
send
-
receive
public static TrackNodeLocation receive(net.minecraft.network.FriendlyByteBuf buffer, DimensionPalette dimensions) -
allAdjacent
-