Package net.minecraft.aprilfools
Record Class WorldEffect
java.lang.Object
java.lang.Record
net.minecraft.aprilfools.WorldEffect
- Record Components:
id-name-description-unlockHint-itemModel-components-unlockMode-unlockedBy-unlockedAfter-requiredUnlockCount-inSets-incompatibleWith-experienceModifier-randomWeight-randomizationMode-multiplayerOnly-onMineEnter-onMineLeave-onMineTick-
public record WorldEffect(String id, Text name, Text description, Text unlockHint, @Nullable Identifier itemModel, List<class_11111> components, UnlockMode unlockMode, List<UnlockCondition> unlockedBy, List<WorldEffect> unlockedAfter, int requiredUnlockCount, Set<WorldEffectSet> inSets, Set<WorldEffect> incompatibleWith, float experienceModifier, int randomWeight, RandomizationMode randomizationMode, boolean multiplayerOnly, Consumer<ServerWorld> onMineEnter, Consumer<ServerWorld> onMineLeave, Consumer<ServerWorld> onMineTick)
extends Record
- Mappings:
Namespace Name named net/minecraft/aprilfools/WorldEffectintermediary net/minecraft/class_11109official fcanamed idintermediary comp_3992official cnamed nameintermediary comp_3993official dnamed descriptionintermediary comp_3994official enamed unlockHintintermediary comp_3995official fnamed itemModelintermediary comp_3996official gnamed componentsintermediary comp_3997official hnamed unlockModeintermediary comp_3998official inamed unlockedByintermediary comp_3999official jnamed unlockedAfterintermediary comp_4000official knamed requiredUnlockCountintermediary comp_4001official lnamed inSetsintermediary comp_4002official mnamed incompatibleWithintermediary comp_4003official nnamed experienceModifierintermediary comp_4004official onamed randomWeightintermediary comp_4005official pnamed randomizationModeintermediary comp_4006official qnamed multiplayerOnlyintermediary comp_4007official rnamed onMineEnterintermediary comp_4008official snamed onMineLeaveintermediary comp_4009official tnamed onMineTickintermediary comp_4010official u
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldEffect> private final List<class_11111> The field for thecomponentsrecord component.private final TextThe field for thedescriptionrecord component.private final floatThe field for theexperienceModifierrecord component.private final StringThe field for theidrecord component.private final Set<WorldEffect> The field for theincompatibleWithrecord component.private final Set<WorldEffectSet> The field for theinSetsrecord component.private final @Nullable IdentifierThe field for theitemModelrecord component.private final booleanThe field for themultiplayerOnlyrecord component.private final TextThe field for thenamerecord component.private final Consumer<ServerWorld> The field for theonMineEnterrecord component.private final Consumer<ServerWorld> The field for theonMineLeaverecord component.private final Consumer<ServerWorld> The field for theonMineTickrecord component.static final PacketCodec<RegistryByteBuf, WorldEffect> private final RandomizationModeThe field for therandomizationModerecord component.private final intThe field for therandomWeightrecord component.private final intThe field for therequiredUnlockCountrecord component.private final List<WorldEffect> The field for theunlockedAfterrecord component.private final List<UnlockCondition> The field for theunlockedByrecord component.private final TextThe field for theunlockHintrecord component.private final UnlockModeThe field for theunlockModerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldEffect(String string, Text text, Text text2, Text text3, @Nullable Identifier identifier, List<class_11111> list, UnlockMode unlockMode, List<UnlockCondition> list2, List<WorldEffect> list3, int int2, Set<WorldEffectSet> set, Set<WorldEffect> set2, float float2, int int3, RandomizationMode randomizationMode, boolean bool, Consumer<ServerWorld> consumer, Consumer<ServerWorld> consumer2, Consumer<ServerWorld> consumer3) -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldEffect.BuilderReturns the value of thecomponentsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theexperienceModifierrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theincompatibleWithrecord component.inSets()Returns the value of theinSetsrecord component.booleanisPossibleToUnlock(ServerWorld world) Returns the value of theitemModelrecord component.booleanmethod_69919(ServerWorld serverWorld) static booleanmethod_69921(WorldEffect worldEffect, WorldEffect worldEffect2) <T extends class_11111>
Stream<T> method_69922(Class<T> class2) booleanmethod_69925(Collection<WorldEffect> collection) booleanmethod_69927(ServerWorld serverWorld) booleanReturns the value of themultiplayerOnlyrecord component.name()Returns the value of thenamerecord component.Returns the value of theonMineEnterrecord component.Returns the value of theonMineLeaverecord component.Returns the value of theonMineTickrecord component.Returns the value of therandomizationModerecord component.intReturns the value of therandomWeightrecord component.intReturns the value of therequiredUnlockCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunlockedAfterrecord component.Returns the value of theunlockedByrecord component.Returns the value of theunlockHintrecord component.Returns the value of theunlockModerecord component.
-
Field Details
-
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
unlockHint
The field for theunlockHintrecord component. -
itemModel
The field for theitemModelrecord component. -
components
The field for thecomponentsrecord component. -
unlockMode
The field for theunlockModerecord component. -
unlockedBy
The field for theunlockedByrecord component. -
unlockedAfter
The field for theunlockedAfterrecord component. -
requiredUnlockCount
private final int requiredUnlockCountThe field for therequiredUnlockCountrecord component. -
inSets
The field for theinSetsrecord component. -
incompatibleWith
The field for theincompatibleWithrecord component. -
experienceModifier
private final float experienceModifierThe field for theexperienceModifierrecord component. -
randomWeight
private final int randomWeightThe field for therandomWeightrecord component. -
randomizationMode
The field for therandomizationModerecord component. -
multiplayerOnly
private final boolean multiplayerOnlyThe field for themultiplayerOnlyrecord component. -
onMineEnter
The field for theonMineEnterrecord component. -
onMineLeave
The field for theonMineLeaverecord component. -
onMineTick
The field for theonMineTickrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/aprilfools/WorldEffect;CODEC:Lcom/mojang/serialization/Codec;intermediary field_59137Lnet/minecraft/class_11109;field_59137:Lcom/mojang/serialization/Codec;official aLfca;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/aprilfools/WorldEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59138Lnet/minecraft/class_11109;field_59138:Lnet/minecraft/class_9139;official bLfca;b:Lzg;
-
-
Constructor Details
-
WorldEffect
public WorldEffect(String string, Text text, Text text2, Text text3, @Nullable @Nullable Identifier identifier, List<class_11111> list, UnlockMode unlockMode, List<UnlockCondition> list2, List<WorldEffect> list3, int int2, Set<WorldEffectSet> set, Set<WorldEffect> set2, float float2, int int3, RandomizationMode randomizationMode, boolean bool, Consumer<ServerWorld> consumer, Consumer<ServerWorld> consumer2, Consumer<ServerWorld> consumer3)
-
-
Method Details
-
method_69925
- Mappings:
Namespace Name Mixin selector named method_69925Lnet/minecraft/aprilfools/WorldEffect;method_69925(Ljava/util/Collection;)Zintermediary method_69925Lnet/minecraft/class_11109;method_69925(Ljava/util/Collection;)Zofficial aLfca;a(Ljava/util/Collection;)Z
-
method_69921
- Mappings:
Namespace Name Mixin selector named method_69921Lnet/minecraft/aprilfools/WorldEffect;method_69921(Lnet/minecraft/aprilfools/WorldEffect;Lnet/minecraft/aprilfools/WorldEffect;)Zintermediary method_69921Lnet/minecraft/class_11109;method_69921(Lnet/minecraft/class_11109;Lnet/minecraft/class_11109;)Zofficial aLfca;a(Lfca;Lfca;)Z
-
method_69919
- Mappings:
Namespace Name Mixin selector named method_69919Lnet/minecraft/aprilfools/WorldEffect;method_69919(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_69919Lnet/minecraft/class_11109;method_69919(Lnet/minecraft/class_3218;)Zofficial aLfca;a(Last;)Z
-
isPossibleToUnlock
- Mappings:
Namespace Name Mixin selector named isPossibleToUnlockLnet/minecraft/aprilfools/WorldEffect;isPossibleToUnlock(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_69926Lnet/minecraft/class_11109;method_69926(Lnet/minecraft/class_3218;)Zofficial bLfca;b(Last;)Z
-
method_69927
- Mappings:
Namespace Name Mixin selector named method_69927Lnet/minecraft/aprilfools/WorldEffect;method_69927(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_69927Lnet/minecraft/class_11109;method_69927(Lnet/minecraft/class_3218;)Zofficial cLfca;c(Last;)Z
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/aprilfools/WorldEffect;builder(Ljava/lang/String;)Lnet/minecraft/aprilfools/WorldEffect$Builder;intermediary method_69924Lnet/minecraft/class_11109;method_69924(Ljava/lang/String;)Lnet/minecraft/class_11109$class_11110;official aLfca;a(Ljava/lang/String;)Lfca$a;
-
method_69922
- Mappings:
Namespace Name Mixin selector named method_69922Lnet/minecraft/aprilfools/WorldEffect;method_69922(Ljava/lang/Class;)Ljava/util/stream/Stream;intermediary method_69922Lnet/minecraft/class_11109;method_69922(Ljava/lang/Class;)Ljava/util/stream/Stream;official aLfca;a(Ljava/lang/Class;)Ljava/util/stream/Stream;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
unlockHint
Returns the value of theunlockHintrecord component.- Returns:
- the value of the
unlockHintrecord component
-
itemModel
Returns the value of theitemModelrecord component.- Returns:
- the value of the
itemModelrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
unlockMode
Returns the value of theunlockModerecord component.- Returns:
- the value of the
unlockModerecord component
-
unlockedBy
Returns the value of theunlockedByrecord component.- Returns:
- the value of the
unlockedByrecord component
-
unlockedAfter
Returns the value of theunlockedAfterrecord component.- Returns:
- the value of the
unlockedAfterrecord component
-
requiredUnlockCount
public int requiredUnlockCount()Returns the value of therequiredUnlockCountrecord component.- Returns:
- the value of the
requiredUnlockCountrecord component
-
inSets
Returns the value of theinSetsrecord component.- Returns:
- the value of the
inSetsrecord component
-
incompatibleWith
Returns the value of theincompatibleWithrecord component.- Returns:
- the value of the
incompatibleWithrecord component
-
experienceModifier
public float experienceModifier()Returns the value of theexperienceModifierrecord component.- Returns:
- the value of the
experienceModifierrecord component
-
randomWeight
public int randomWeight()Returns the value of therandomWeightrecord component.- Returns:
- the value of the
randomWeightrecord component
-
randomizationMode
Returns the value of therandomizationModerecord component.- Returns:
- the value of the
randomizationModerecord component
-
multiplayerOnly
public boolean multiplayerOnly()Returns the value of themultiplayerOnlyrecord component.- Returns:
- the value of the
multiplayerOnlyrecord component
-
onMineEnter
Returns the value of theonMineEnterrecord component.- Returns:
- the value of the
onMineEnterrecord component
-
onMineLeave
Returns the value of theonMineLeaverecord component.- Returns:
- the value of the
onMineLeaverecord component
-
onMineTick
Returns the value of theonMineTickrecord component.- Returns:
- the value of the
onMineTickrecord component
-