Package net.minecraft.block.spawner
Class TrialSpawnerLogic
java.lang.Object
net.minecraft.block.spawner.TrialSpawnerLogic
- Mappings:
Namespace Name official dir
intermediary net/minecraft/class_8963
named net/minecraft/block/spawner/TrialSpawnerLogic
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TrialSpawnerConfig
private final TrialSpawnerData
private EntityDetector
static final int
private static final float
private boolean
private static final int
private static final int
private final TrialSpawnerLogic.TrialSpawner
-
Constructor Summary
ConstructorDescriptionTrialSpawnerLogic
(TrialSpawnerConfig config, TrialSpawnerData data, TrialSpawnerLogic.TrialSpawner trialSpawner, EntityDetector entityDetector) TrialSpawnerLogic
(TrialSpawnerLogic.TrialSpawner trialSpawner, EntityDetector entityDetector) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDetectionParticles
(World world, BlockPos pos, Random random, int playerCount) static void
addEjectItemParticles
(World world, BlockPos pos, Random random) static void
addMobSpawnParticles
(World world, BlockPos pos, Random random) boolean
canActivate
(World world) com.mojang.serialization.Codec<TrialSpawnerLogic>
codec()
void
ejectLootTable
(ServerWorld world, BlockPos pos, Identifier lootTable) void
Deprecated, for removal: This API element is subject to removal in a future version.getData()
private static boolean
hasLineOfSight
(World world, Vec3d spawnerPos, Vec3d spawnPos) void
setEntityDetector
(EntityDetector detector) Deprecated, for removal: This API element is subject to removal in a future version.void
setSpawnerState
(World world, TrialSpawnerState spawnerState) private static boolean
shouldRemoveMobFromData
(ServerWorld world, BlockPos pos, UUID uuid) void
tickClient
(World world, BlockPos pos) void
tickServer
(ServerWorld world, BlockPos pos) trySpawnMob
(ServerWorld world, BlockPos pos) void
-
Field Details
-
field_47358
public static final int field_47358- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldir;a:I
intermediary field_47358
Lnet/minecraft/class_8963;field_47358:I
named field_47358
Lnet/minecraft/block/spawner/TrialSpawnerLogic;field_47358:I
-
MAX_ENTITY_DISTANCE
private static final int MAX_ENTITY_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldir;b:I
intermediary field_47359
Lnet/minecraft/class_8963;field_47359:I
named MAX_ENTITY_DISTANCE
Lnet/minecraft/block/spawner/TrialSpawnerLogic;MAX_ENTITY_DISTANCE:I
-
MAX_ENTITY_DISTANCE_SQUARED
private static final int MAX_ENTITY_DISTANCE_SQUARED- Mappings:
Namespace Name Mixin selector official c
Ldir;c:I
intermediary field_47360
Lnet/minecraft/class_8963;field_47360:I
named MAX_ENTITY_DISTANCE_SQUARED
Lnet/minecraft/block/spawner/TrialSpawnerLogic;MAX_ENTITY_DISTANCE_SQUARED:I
-
field_47361
private static final float field_47361- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldir;d:F
intermediary field_47361
Lnet/minecraft/class_8963;field_47361:F
named field_47361
Lnet/minecraft/block/spawner/TrialSpawnerLogic;field_47361:F
-
config
- Mappings:
Namespace Name Mixin selector official e
Ldir;e:Ldis;
intermediary field_47362
Lnet/minecraft/class_8963;field_47362:Lnet/minecraft/class_8965;
named config
Lnet/minecraft/block/spawner/TrialSpawnerLogic;config:Lnet/minecraft/block/spawner/TrialSpawnerConfig;
-
data
- Mappings:
Namespace Name Mixin selector official f
Ldir;f:Ldit;
intermediary field_47363
Lnet/minecraft/class_8963;field_47363:Lnet/minecraft/class_8966;
named data
Lnet/minecraft/block/spawner/TrialSpawnerLogic;data:Lnet/minecraft/block/spawner/TrialSpawnerData;
-
trialSpawner
- Mappings:
Namespace Name Mixin selector official g
Ldir;g:Ldir$a;
intermediary field_47364
Lnet/minecraft/class_8963;field_47364:Lnet/minecraft/class_8963$class_8964;
named trialSpawner
Lnet/minecraft/block/spawner/TrialSpawnerLogic;trialSpawner:Lnet/minecraft/block/spawner/TrialSpawnerLogic$TrialSpawner;
-
entityDetector
- Mappings:
Namespace Name Mixin selector official h
Ldir;h:Ldiq;
intermediary field_47365
Lnet/minecraft/class_8963;field_47365:Lnet/minecraft/class_8962;
named entityDetector
Lnet/minecraft/block/spawner/TrialSpawnerLogic;entityDetector:Lnet/minecraft/block/spawner/EntityDetector;
-
forceActivate
private boolean forceActivate- Mappings:
Namespace Name Mixin selector official i
Ldir;i:Z
intermediary field_47366
Lnet/minecraft/class_8963;field_47366:Z
named forceActivate
Lnet/minecraft/block/spawner/TrialSpawnerLogic;forceActivate:Z
-
-
Constructor Details
-
TrialSpawnerLogic
public TrialSpawnerLogic(TrialSpawnerLogic.TrialSpawner trialSpawner, EntityDetector entityDetector) - Mappings:
Namespace Name Mixin selector official <init>
Ldir;<init>(Ldir$a;Ldiq;)V
intermediary <init>
Lnet/minecraft/class_8963;<init>(Lnet/minecraft/class_8963$class_8964;Lnet/minecraft/class_8962;)V
named <init>
Lnet/minecraft/block/spawner/TrialSpawnerLogic;<init>(Lnet/minecraft/block/spawner/TrialSpawnerLogic$TrialSpawner;Lnet/minecraft/block/spawner/EntityDetector;)V
-
TrialSpawnerLogic
public TrialSpawnerLogic(TrialSpawnerConfig config, TrialSpawnerData data, TrialSpawnerLogic.TrialSpawner trialSpawner, EntityDetector entityDetector) - Mappings:
Namespace Name Mixin selector official <init>
Ldir;<init>(Ldis;Ldit;Ldir$a;Ldiq;)V
intermediary <init>
Lnet/minecraft/class_8963;<init>(Lnet/minecraft/class_8965;Lnet/minecraft/class_8966;Lnet/minecraft/class_8963$class_8964;Lnet/minecraft/class_8962;)V
named <init>
Lnet/minecraft/block/spawner/TrialSpawnerLogic;<init>(Lnet/minecraft/block/spawner/TrialSpawnerConfig;Lnet/minecraft/block/spawner/TrialSpawnerData;Lnet/minecraft/block/spawner/TrialSpawnerLogic$TrialSpawner;Lnet/minecraft/block/spawner/EntityDetector;)V
-
-
Method Details
-
codec
- Mappings:
Namespace Name Mixin selector official a
Ldir;a()Lcom/mojang/serialization/Codec;
intermediary method_55156
Lnet/minecraft/class_8963;method_55156()Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/block/spawner/TrialSpawnerLogic;codec()Lcom/mojang/serialization/Codec;
-
getConfig
- Mappings:
Namespace Name Mixin selector official b
Ldir;b()Ldis;
intermediary method_55170
Lnet/minecraft/class_8963;method_55170()Lnet/minecraft/class_8965;
named getConfig
Lnet/minecraft/block/spawner/TrialSpawnerLogic;getConfig()Lnet/minecraft/block/spawner/TrialSpawnerConfig;
-
getData
- Mappings:
Namespace Name Mixin selector official c
Ldir;c()Ldit;
intermediary method_55174
Lnet/minecraft/class_8963;method_55174()Lnet/minecraft/class_8966;
named getData
Lnet/minecraft/block/spawner/TrialSpawnerLogic;getData()Lnet/minecraft/block/spawner/TrialSpawnerData;
-
getSpawnerState
- Mappings:
Namespace Name Mixin selector official d
Ldir;d()Ldiu;
intermediary method_55175
Lnet/minecraft/class_8963;method_55175()Lnet/minecraft/class_8967;
named getSpawnerState
Lnet/minecraft/block/spawner/TrialSpawnerLogic;getSpawnerState()Lnet/minecraft/block/enums/TrialSpawnerState;
-
setSpawnerState
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;Ldiu;)V
intermediary method_55163
Lnet/minecraft/class_8963;method_55163(Lnet/minecraft/class_1937;Lnet/minecraft/class_8967;)V
named setSpawnerState
Lnet/minecraft/block/spawner/TrialSpawnerLogic;setSpawnerState(Lnet/minecraft/world/World;Lnet/minecraft/block/enums/TrialSpawnerState;)V
-
updateListeners
public void updateListeners()- Mappings:
Namespace Name Mixin selector official e
Ldir;e()V
intermediary method_55176
Lnet/minecraft/class_8963;method_55176()V
named updateListeners
Lnet/minecraft/block/spawner/TrialSpawnerLogic;updateListeners()V
-
getEntityDetector
- Mappings:
Namespace Name Mixin selector official f
Ldir;f()Ldiq;
intermediary method_55177
Lnet/minecraft/class_8963;method_55177()Lnet/minecraft/class_8962;
named getEntityDetector
Lnet/minecraft/block/spawner/TrialSpawnerLogic;getEntityDetector()Lnet/minecraft/block/spawner/EntityDetector;
-
canActivate
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;)Z
intermediary method_55162
Lnet/minecraft/class_8963;method_55162(Lnet/minecraft/class_1937;)Z
named canActivate
Lnet/minecraft/block/spawner/TrialSpawnerLogic;canActivate(Lnet/minecraft/world/World;)Z
-
trySpawnMob
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Land;Lhx;)Ljava/util/Optional;
intermediary method_55158
Lnet/minecraft/class_8963;method_55158(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Ljava/util/Optional;
named trySpawnMob
Lnet/minecraft/block/spawner/TrialSpawnerLogic;trySpawnMob(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
ejectLootTable
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Land;Lhx;Lahg;)V
intermediary method_55159
Lnet/minecraft/class_8963;method_55159(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2960;)V
named ejectLootTable
Lnet/minecraft/block/spawner/TrialSpawnerLogic;ejectLootTable(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Identifier;)V
-
tickClient
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;Lhx;)V
intermediary method_55165
Lnet/minecraft/class_8963;method_55165(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named tickClient
Lnet/minecraft/block/spawner/TrialSpawnerLogic;tickClient(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
tickServer
- Mappings:
Namespace Name Mixin selector official b
Ldir;b(Land;Lhx;)V
intermediary method_55171
Lnet/minecraft/class_8963;method_55171(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
named tickServer
Lnet/minecraft/block/spawner/TrialSpawnerLogic;tickServer(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
shouldRemoveMobFromData
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Land;Lhx;Ljava/util/UUID;)Z
intermediary method_55160
Lnet/minecraft/class_8963;method_55160(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/UUID;)Z
named shouldRemoveMobFromData
Lnet/minecraft/block/spawner/TrialSpawnerLogic;shouldRemoveMobFromData(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/UUID;)Z
-
hasLineOfSight
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;Lelt;Lelt;)Z
intermediary method_55164
Lnet/minecraft/class_8963;method_55164(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
named hasLineOfSight
Lnet/minecraft/block/spawner/TrialSpawnerLogic;hasLineOfSight(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-
addMobSpawnParticles
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;Lhx;Lauv;)V
intermediary method_55166
Lnet/minecraft/class_8963;method_55166(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
named addMobSpawnParticles
Lnet/minecraft/block/spawner/TrialSpawnerLogic;addMobSpawnParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
addDetectionParticles
- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Lctp;Lhx;Lauv;I)V
intermediary method_55167
Lnet/minecraft/class_8963;method_55167(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;I)V
named addDetectionParticles
Lnet/minecraft/block/spawner/TrialSpawnerLogic;addDetectionParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;I)V
-
addEjectItemParticles
- Mappings:
Namespace Name Mixin selector official b
Ldir;b(Lctp;Lhx;Lauv;)V
intermediary method_55173
Lnet/minecraft/class_8963;method_55173(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
named addEjectItemParticles
Lnet/minecraft/block/spawner/TrialSpawnerLogic;addEjectItemParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
setEntityDetector
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official a
Ldir;a(Ldiq;)V
intermediary method_55168
Lnet/minecraft/class_8963;method_55168(Lnet/minecraft/class_8962;)V
named setEntityDetector
Lnet/minecraft/block/spawner/TrialSpawnerLogic;setEntityDetector(Lnet/minecraft/block/spawner/EntityDetector;)V
-
forceActivate
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official g
Ldir;g()V
intermediary method_55178
Lnet/minecraft/class_8963;method_55178()V
named forceActivate
Lnet/minecraft/block/spawner/TrialSpawnerLogic;forceActivate()V
-