Package net.minecraft.world.biome
Class SpawnSettings
java.lang.Object
net.minecraft.world.biome.SpawnSettings
public class SpawnSettings extends Object
- Mappings:
Namespace Name official bvf
intermediary net/minecraft/class_5483
named net/minecraft/world/biome/SpawnSettings
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpawnSettings.Builder
static class
SpawnSettings.SpawnDensity
Embodies the density limit information of a type of entity in entity spawning logic.static class
SpawnSettings.SpawnEntry
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.MapCodec<SpawnSettings>
CODEC
private float
creatureSpawnProbability
static SpawnSettings
INSTANCE
static Logger
LOGGER
private boolean
playerSpawnFriendly
private Map<EntityType<?>,SpawnSettings.SpawnDensity>
spawnCosts
private Map<SpawnGroup,List<SpawnSettings.SpawnEntry>>
spawners
-
Constructor Summary
Constructors Modifier Constructor Description private
SpawnSettings(float creatureSpawnProbability, Map<SpawnGroup,List<SpawnSettings.SpawnEntry>> spawners, Map<EntityType<?>,SpawnSettings.SpawnDensity> spawnCosts, boolean playerSpawnFriendly)
-
Method Summary
Modifier and Type Method Description float
getCreatureSpawnProbability()
SpawnSettings.SpawnDensity
getSpawnDensity(EntityType<?> entityType)
List<SpawnSettings.SpawnEntry>
getSpawnEntries(SpawnGroup spawnGroup)
boolean
isPlayerSpawnFriendly()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lbvf;a:Lorg/apache/logging/log4j/Logger;
intermediary field_26645
Lnet/minecraft/class_5483;field_26645:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/biome/SpawnSettings;LOGGER:Lorg/apache/logging/log4j/Logger;
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official b
Lbvf;b:Lbvf;
intermediary field_26646
Lnet/minecraft/class_5483;field_26646:Lnet/minecraft/class_5483;
named INSTANCE
Lnet/minecraft/world/biome/SpawnSettings;INSTANCE:Lnet/minecraft/world/biome/SpawnSettings;
-
CODEC
- Mappings:
Namespace Name Mixin selector official c
Lbvf;c:Lcom/mojang/serialization/MapCodec;
intermediary field_26403
Lnet/minecraft/class_5483;field_26403:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/world/biome/SpawnSettings;CODEC:Lcom/mojang/serialization/MapCodec;
-
creatureSpawnProbability
private final float creatureSpawnProbability- Mappings:
Namespace Name Mixin selector official d
Lbvf;d:F
intermediary field_26404
Lnet/minecraft/class_5483;field_26404:F
named creatureSpawnProbability
Lnet/minecraft/world/biome/SpawnSettings;creatureSpawnProbability:F
-
spawners
- Mappings:
Namespace Name Mixin selector official e
Lbvf;e:Ljava/util/Map;
intermediary field_26405
Lnet/minecraft/class_5483;field_26405:Ljava/util/Map;
named spawners
Lnet/minecraft/world/biome/SpawnSettings;spawners:Ljava/util/Map;
-
spawnCosts
- Mappings:
Namespace Name Mixin selector official f
Lbvf;f:Ljava/util/Map;
intermediary field_26406
Lnet/minecraft/class_5483;field_26406:Ljava/util/Map;
named spawnCosts
Lnet/minecraft/world/biome/SpawnSettings;spawnCosts:Ljava/util/Map;
-
playerSpawnFriendly
private final boolean playerSpawnFriendly- Mappings:
Namespace Name Mixin selector official g
Lbvf;g:Z
intermediary field_26692
Lnet/minecraft/class_5483;field_26692:Z
named playerSpawnFriendly
Lnet/minecraft/world/biome/SpawnSettings;playerSpawnFriendly:Z
-
-
Constructor Details
-
SpawnSettings
private SpawnSettings(float creatureSpawnProbability, Map<SpawnGroup,List<SpawnSettings.SpawnEntry>> spawners, Map<EntityType<?>,SpawnSettings.SpawnDensity> spawnCosts, boolean playerSpawnFriendly)- Mappings:
Namespace Name Mixin selector official <init>
Lbvf;<init>(FLjava/util/Map;Ljava/util/Map;Z)V
intermediary <init>
Lnet/minecraft/class_5483;<init>(FLjava/util/Map;Ljava/util/Map;Z)V
named <init>
Lnet/minecraft/world/biome/SpawnSettings;<init>(FLjava/util/Map;Ljava/util/Map;Z)V
-
-
Method Details
-
getSpawnEntries
- Mappings:
Namespace Name Mixin selector official a
Lbvf;a(Lark;)Ljava/util/List;
intermediary method_31004
Lnet/minecraft/class_5483;method_31004(Lnet/minecraft/class_1311;)Ljava/util/List;
named getSpawnEntries
Lnet/minecraft/world/biome/SpawnSettings;getSpawnEntries(Lnet/minecraft/entity/SpawnGroup;)Ljava/util/List;
-
getSpawnDensity
- Mappings:
Namespace Name Mixin selector official a
Lbvf;a(Laqz;)Lbvf$b;
intermediary method_31003
Lnet/minecraft/class_5483;method_31003(Lnet/minecraft/class_1299;)Lnet/minecraft/class_5483$class_5265;
named getSpawnDensity
Lnet/minecraft/world/biome/SpawnSettings;getSpawnDensity(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/world/biome/SpawnSettings$SpawnDensity;
-
getCreatureSpawnProbability
public float getCreatureSpawnProbability()- Mappings:
Namespace Name Mixin selector official a
Lbvf;a()F
intermediary method_31002
Lnet/minecraft/class_5483;method_31002()F
named getCreatureSpawnProbability
Lnet/minecraft/world/biome/SpawnSettings;getCreatureSpawnProbability()F
-
isPlayerSpawnFriendly
public boolean isPlayerSpawnFriendly()- Mappings:
Namespace Name Mixin selector official b
Lbvf;b()Z
intermediary method_31082
Lnet/minecraft/class_5483;method_31082()Z
named isPlayerSpawnFriendly
Lnet/minecraft/world/biome/SpawnSettings;isPlayerSpawnFriendly()Z
-