Class SpawnDensityCapper

java.lang.Object
net.minecraft.world.SpawnDensityCapper

public class SpawnDensityCapper extends Object
Mappings:
Namespace Name
named net/minecraft/world/SpawnDensityCapper
intermediary net/minecraft/class_6540
official dcj
  • Field Details

    • chunkPosToMobSpawnablePlayers

      private final Long2ObjectMap<List<ServerPlayerEntity>> chunkPosToMobSpawnablePlayers
      Mappings:
      Namespace Name Mixin selector
      named chunkPosToMobSpawnablePlayers Lnet/minecraft/world/SpawnDensityCapper;chunkPosToMobSpawnablePlayers:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      intermediary field_34455 Lnet/minecraft/class_6540;field_34455:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      official a Ldcj;a:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
    • playersToDensityCap

      private final Map<ServerPlayerEntity,SpawnDensityCapper.DensityCap> playersToDensityCap
      Mappings:
      Namespace Name Mixin selector
      named playersToDensityCap Lnet/minecraft/world/SpawnDensityCapper;playersToDensityCap:Ljava/util/Map;
      intermediary field_34456 Lnet/minecraft/class_6540;field_34456:Ljava/util/Map;
      official b Ldcj;b:Ljava/util/Map;
    • threadedAnvilChunkStorage

      private final ThreadedAnvilChunkStorage threadedAnvilChunkStorage
      Mappings:
      Namespace Name Mixin selector
      named threadedAnvilChunkStorage Lnet/minecraft/world/SpawnDensityCapper;threadedAnvilChunkStorage:Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;
      intermediary field_34457 Lnet/minecraft/class_6540;field_34457:Lnet/minecraft/class_3898;
      official c Ldcj;c:Laqo;
  • Constructor Details

    • SpawnDensityCapper

      public SpawnDensityCapper(ThreadedAnvilChunkStorage threadedAnvilChunkStorage)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/SpawnDensityCapper;<init>(Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;)V
      intermediary <init> Lnet/minecraft/class_6540;<init>(Lnet/minecraft/class_3898;)V
      official <init> Ldcj;<init>(Laqo;)V
  • Method Details

    • getMobSpawnablePlayers

      private List<ServerPlayerEntity> getMobSpawnablePlayers(ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      named getMobSpawnablePlayers Lnet/minecraft/world/SpawnDensityCapper;getMobSpawnablePlayers(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/List;
      intermediary method_38085 Lnet/minecraft/class_6540;method_38085(Lnet/minecraft/class_1923;)Ljava/util/List;
      official a Ldcj;a(Ldbg;)Ljava/util/List;
    • increaseDensity

      public void increaseDensity(ChunkPos chunkPos, SpawnGroup spawnGroup)
      Mappings:
      Namespace Name Mixin selector
      named increaseDensity Lnet/minecraft/world/SpawnDensityCapper;increaseDensity(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/entity/SpawnGroup;)V
      intermediary method_38087 Lnet/minecraft/class_6540;method_38087(Lnet/minecraft/class_1923;Lnet/minecraft/class_1311;)V
      official a Ldcj;a(Ldbg;Lbtt;)V
    • canSpawn

      public boolean canSpawn(SpawnGroup spawnGroup, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/world/SpawnDensityCapper;canSpawn(Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/ChunkPos;)Z
      intermediary method_38084 Lnet/minecraft/class_6540;method_38084(Lnet/minecraft/class_1311;Lnet/minecraft/class_1923;)Z
      official a Ldcj;a(Lbtt;Ldbg;)Z