Package net.minecraft.server.network
Class SpawnLocating
java.lang.Object
net.minecraft.server.network.SpawnLocating
- Mappings:
Namespace Name named net/minecraft/server/network/SpawnLocatingintermediary net/minecraft/class_5322official axf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final CompletableFuture<Vec3d> private static final intprivate final intprivate static final EntityDimensionsprivate final intprivate final intprivate final BlockPosprivate final intprivate final ServerWorld -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSpawnLocating(ServerWorld world, BlockPos spawnPos, int spawnRadius) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateShiftAmount(int spawnArea) findOverworldSpawn(ServerWorld world, int x, int z) private static Vec3dfindPosInColumn(CollisionView world, BlockPos pos) findServerSpawnPoint(ServerWorld world, ChunkPos chunkPos) private static booleanisSpaceEmpty(CollisionView world, BlockPos pos) static CompletableFuture<Vec3d> locateSpawnPos(ServerWorld world, BlockPos spawnPos) private voidprivate voidscheduleSearch(int x, int z, int index, Supplier<Optional<Vec3d>> spawnFinder)
-
Field Details
-
PLAYER_DIMENSIONS
- Mappings:
Namespace Name Mixin selector named PLAYER_DIMENSIONSLnet/minecraft/server/network/SpawnLocating;PLAYER_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;intermediary field_61084Lnet/minecraft/class_5322;field_61084:Lnet/minecraft/class_4048;official aLaxf;a:Lcgg;
-
MAX_SPAWN_AREA
private static final int MAX_SPAWN_AREA- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SPAWN_AREALnet/minecraft/server/network/SpawnLocating;MAX_SPAWN_AREA:Iintermediary field_61085Lnet/minecraft/class_5322;field_61085:Iofficial bLaxf;b:I
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/server/network/SpawnLocating;world:Lnet/minecraft/server/world/ServerWorld;intermediary field_61086Lnet/minecraft/class_5322;field_61086:Lnet/minecraft/class_3218;official cLaxf;c:Laxl;
-
spawnPos
- Mappings:
Namespace Name Mixin selector named spawnPosLnet/minecraft/server/network/SpawnLocating;spawnPos:Lnet/minecraft/util/math/BlockPos;intermediary field_61087Lnet/minecraft/class_5322;field_61087:Lnet/minecraft/class_2338;official dLaxf;d:Liz;
-
spawnRadius
private final int spawnRadius- Mappings:
Namespace Name Mixin selector named spawnRadiusLnet/minecraft/server/network/SpawnLocating;spawnRadius:Iintermediary field_61088Lnet/minecraft/class_5322;field_61088:Iofficial eLaxf;e:I
-
spawnArea
private final int spawnArea- Mappings:
Namespace Name Mixin selector named spawnAreaLnet/minecraft/server/network/SpawnLocating;spawnArea:Iintermediary field_61089Lnet/minecraft/class_5322;field_61089:Iofficial fLaxf;f:I
-
shiftAmount
private final int shiftAmount- Mappings:
Namespace Name Mixin selector named shiftAmountLnet/minecraft/server/network/SpawnLocating;shiftAmount:Iintermediary field_61090Lnet/minecraft/class_5322;field_61090:Iofficial gLaxf;g:I
-
offset
private final int offset- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/server/network/SpawnLocating;offset:Iintermediary field_61091Lnet/minecraft/class_5322;field_61091:Iofficial hLaxf;h:I
-
attempt
private int attempt- Mappings:
Namespace Name Mixin selector named attemptLnet/minecraft/server/network/SpawnLocating;attempt:Iintermediary field_61092Lnet/minecraft/class_5322;field_61092:Iofficial iLaxf;i:I
-
future
- Mappings:
Namespace Name Mixin selector named futureLnet/minecraft/server/network/SpawnLocating;future:Ljava/util/concurrent/CompletableFuture;intermediary field_61093Lnet/minecraft/class_5322;field_61093:Ljava/util/concurrent/CompletableFuture;official jLaxf;j:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
SpawnLocating
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/network/SpawnLocating;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;I)Vintermediary <init>Lnet/minecraft/class_5322;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;I)Vofficial <init>Laxf;<init>(Laxl;Liz;I)V
-
-
Method Details
-
locateSpawnPos
- Mappings:
Namespace Name Mixin selector named locateSpawnPosLnet/minecraft/server/network/SpawnLocating;locateSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Ljava/util/concurrent/CompletableFuture;intermediary method_72259Lnet/minecraft/class_5322;method_72259(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Ljava/util/concurrent/CompletableFuture;official aLaxf;a(Laxl;Liz;)Ljava/util/concurrent/CompletableFuture;
-
scheduleNextSearch
private void scheduleNextSearch()- Mappings:
Namespace Name Mixin selector named scheduleNextSearchLnet/minecraft/server/network/SpawnLocating;scheduleNextSearch()Vintermediary method_72255Lnet/minecraft/class_5322;method_72255()Vofficial aLaxf;a()V
-
findPosInColumn
- Mappings:
Namespace Name Mixin selector named findPosInColumnLnet/minecraft/server/network/SpawnLocating;findPosInColumn(Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;intermediary method_72260Lnet/minecraft/class_5322;method_72260(Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;official aLaxf;a(Ldtv;Liz;)Lfrd;
-
isSpaceEmpty
- Mappings:
Namespace Name Mixin selector named isSpaceEmptyLnet/minecraft/server/network/SpawnLocating;isSpaceEmpty(Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_72265Lnet/minecraft/class_5322;method_72265(Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;)Zofficial bLaxf;b(Ldtv;Liz;)Z
-
calculateShiftAmount
private static int calculateShiftAmount(int spawnArea) - Mappings:
Namespace Name Mixin selector named calculateShiftAmountLnet/minecraft/server/network/SpawnLocating;calculateShiftAmount(I)Iintermediary method_72256Lnet/minecraft/class_5322;method_72256(I)Iofficial aLaxf;a(I)I
-
scheduleSearch
- Mappings:
Namespace Name Mixin selector named scheduleSearchLnet/minecraft/server/network/SpawnLocating;scheduleSearch(IIILjava/util/function/Supplier;)Vintermediary method_72258Lnet/minecraft/class_5322;method_72258(IIILjava/util/function/Supplier;)Vofficial aLaxf;a(IIILjava/util/function/Supplier;)V
-
findOverworldSpawn
- Mappings:
Namespace Name Mixin selector named findOverworldSpawnLnet/minecraft/server/network/SpawnLocating;findOverworldSpawn(Lnet/minecraft/server/world/ServerWorld;II)Lnet/minecraft/util/math/BlockPos;intermediary method_29194Lnet/minecraft/class_5322;method_29194(Lnet/minecraft/class_3218;II)Lnet/minecraft/class_2338;official aLaxf;a(Laxl;II)Liz;
-
findServerSpawnPoint
@Nullable public static @Nullable BlockPos findServerSpawnPoint(ServerWorld world, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector named findServerSpawnPointLnet/minecraft/server/network/SpawnLocating;findServerSpawnPoint(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_29196Lnet/minecraft/class_5322;method_29196(Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;official aLaxf;a(Laxl;Ldts;)Liz;
-