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/WorldEffect
intermediary net/minecraft/class_11109
official fca
named id
intermediary comp_3992
official c
named name
intermediary comp_3993
official d
named description
intermediary comp_3994
official e
named unlockHint
intermediary comp_3995
official f
named itemModel
intermediary comp_3996
official g
named components
intermediary comp_3997
official h
named unlockMode
intermediary comp_3998
official i
named unlockedBy
intermediary comp_3999
official j
named unlockedAfter
intermediary comp_4000
official k
named requiredUnlockCount
intermediary comp_4001
official l
named inSets
intermediary comp_4002
official m
named incompatibleWith
intermediary comp_4003
official n
named experienceModifier
intermediary comp_4004
official o
named randomWeight
intermediary comp_4005
official p
named randomizationMode
intermediary comp_4006
official q
named multiplayerOnly
intermediary comp_4007
official r
named onMineEnter
intermediary comp_4008
official s
named onMineLeave
intermediary comp_4009
official t
named onMineTick
intermediary comp_4010
official u
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • name

      private final Text name
      The field for the name record component.
    • description

      private final Text description
      The field for the description record component.
    • unlockHint

      private final Text unlockHint
      The field for the unlockHint record component.
    • itemModel

      @Nullable private final @Nullable Identifier itemModel
      The field for the itemModel record component.
    • components

      private final List<class_11111> components
      The field for the components record component.
    • unlockMode

      private final UnlockMode unlockMode
      The field for the unlockMode record component.
    • unlockedBy

      private final List<UnlockCondition> unlockedBy
      The field for the unlockedBy record component.
    • unlockedAfter

      private final List<WorldEffect> unlockedAfter
      The field for the unlockedAfter record component.
    • requiredUnlockCount

      private final int requiredUnlockCount
      The field for the requiredUnlockCount record component.
    • inSets

      private final Set<WorldEffectSet> inSets
      The field for the inSets record component.
    • incompatibleWith

      private final Set<WorldEffect> incompatibleWith
      The field for the incompatibleWith record component.
    • experienceModifier

      private final float experienceModifier
      The field for the experienceModifier record component.
    • randomWeight

      private final int randomWeight
      The field for the randomWeight record component.
    • randomizationMode

      private final RandomizationMode randomizationMode
      The field for the randomizationMode record component.
    • multiplayerOnly

      private final boolean multiplayerOnly
      The field for the multiplayerOnly record component.
    • onMineEnter

      private final Consumer<ServerWorld> onMineEnter
      The field for the onMineEnter record component.
    • onMineLeave

      private final Consumer<ServerWorld> onMineLeave
      The field for the onMineLeave record component.
    • onMineTick

      private final Consumer<ServerWorld> onMineTick
      The field for the onMineTick record component.
    • CODEC

      public static final com.mojang.serialization.Codec<WorldEffect> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/aprilfools/WorldEffect;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_59137 Lnet/minecraft/class_11109;field_59137:Lcom/mojang/serialization/Codec;
      official a Lfca;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,WorldEffect> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/aprilfools/WorldEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59138 Lnet/minecraft/class_11109;field_59138:Lnet/minecraft/class_9139;
      official b Lfca;b:Lzg;
  • Constructor Details

  • Method Details

    • method_69925

      public boolean method_69925(Collection<WorldEffect> collection)
      Mappings:
      Namespace Name Mixin selector
      named method_69925 Lnet/minecraft/aprilfools/WorldEffect;method_69925(Ljava/util/Collection;)Z
      intermediary method_69925 Lnet/minecraft/class_11109;method_69925(Ljava/util/Collection;)Z
      official a Lfca;a(Ljava/util/Collection;)Z
    • method_69921

      public static boolean method_69921(WorldEffect worldEffect, WorldEffect worldEffect2)
      Mappings:
      Namespace Name Mixin selector
      named method_69921 Lnet/minecraft/aprilfools/WorldEffect;method_69921(Lnet/minecraft/aprilfools/WorldEffect;Lnet/minecraft/aprilfools/WorldEffect;)Z
      intermediary method_69921 Lnet/minecraft/class_11109;method_69921(Lnet/minecraft/class_11109;Lnet/minecraft/class_11109;)Z
      official a Lfca;a(Lfca;Lfca;)Z
    • method_69919

      public boolean method_69919(ServerWorld serverWorld)
      Mappings:
      Namespace Name Mixin selector
      named method_69919 Lnet/minecraft/aprilfools/WorldEffect;method_69919(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_69919 Lnet/minecraft/class_11109;method_69919(Lnet/minecraft/class_3218;)Z
      official a Lfca;a(Last;)Z
    • isPossibleToUnlock

      public boolean isPossibleToUnlock(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named isPossibleToUnlock Lnet/minecraft/aprilfools/WorldEffect;isPossibleToUnlock(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_69926 Lnet/minecraft/class_11109;method_69926(Lnet/minecraft/class_3218;)Z
      official b Lfca;b(Last;)Z
    • method_69927

      public boolean method_69927(ServerWorld serverWorld)
      Mappings:
      Namespace Name Mixin selector
      named method_69927 Lnet/minecraft/aprilfools/WorldEffect;method_69927(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_69927 Lnet/minecraft/class_11109;method_69927(Lnet/minecraft/class_3218;)Z
      official c Lfca;c(Last;)Z
    • builder

      public static WorldEffect.Builder builder(String id)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/aprilfools/WorldEffect;builder(Ljava/lang/String;)Lnet/minecraft/aprilfools/WorldEffect$Builder;
      intermediary method_69924 Lnet/minecraft/class_11109;method_69924(Ljava/lang/String;)Lnet/minecraft/class_11109$class_11110;
      official a Lfca;a(Ljava/lang/String;)Lfca$a;
    • method_69922

      public <T extends class_11111> Stream<T> method_69922(Class<T> class2)
      Mappings:
      Namespace Name Mixin selector
      named method_69922 Lnet/minecraft/aprilfools/WorldEffect;method_69922(Ljava/lang/Class;)Ljava/util/stream/Stream;
      intermediary method_69922 Lnet/minecraft/class_11109;method_69922(Ljava/lang/Class;)Ljava/util/stream/Stream;
      official a Lfca;a(Ljava/lang/Class;)Ljava/util/stream/Stream;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public Text name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • unlockHint

      public Text unlockHint()
      Returns the value of the unlockHint record component.
      Returns:
      the value of the unlockHint record component
    • itemModel

      @Nullable public @Nullable Identifier itemModel()
      Returns the value of the itemModel record component.
      Returns:
      the value of the itemModel record component
    • components

      public List<class_11111> components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component
    • unlockMode

      public UnlockMode unlockMode()
      Returns the value of the unlockMode record component.
      Returns:
      the value of the unlockMode record component
    • unlockedBy

      public List<UnlockCondition> unlockedBy()
      Returns the value of the unlockedBy record component.
      Returns:
      the value of the unlockedBy record component
    • unlockedAfter

      public List<WorldEffect> unlockedAfter()
      Returns the value of the unlockedAfter record component.
      Returns:
      the value of the unlockedAfter record component
    • requiredUnlockCount

      public int requiredUnlockCount()
      Returns the value of the requiredUnlockCount record component.
      Returns:
      the value of the requiredUnlockCount record component
    • inSets

      public Set<WorldEffectSet> inSets()
      Returns the value of the inSets record component.
      Returns:
      the value of the inSets record component
    • incompatibleWith

      public Set<WorldEffect> incompatibleWith()
      Returns the value of the incompatibleWith record component.
      Returns:
      the value of the incompatibleWith record component
    • experienceModifier

      public float experienceModifier()
      Returns the value of the experienceModifier record component.
      Returns:
      the value of the experienceModifier record component
    • randomWeight

      public int randomWeight()
      Returns the value of the randomWeight record component.
      Returns:
      the value of the randomWeight record component
    • randomizationMode

      public RandomizationMode randomizationMode()
      Returns the value of the randomizationMode record component.
      Returns:
      the value of the randomizationMode record component
    • multiplayerOnly

      public boolean multiplayerOnly()
      Returns the value of the multiplayerOnly record component.
      Returns:
      the value of the multiplayerOnly record component
    • onMineEnter

      public Consumer<ServerWorld> onMineEnter()
      Returns the value of the onMineEnter record component.
      Returns:
      the value of the onMineEnter record component
    • onMineLeave

      public Consumer<ServerWorld> onMineLeave()
      Returns the value of the onMineLeave record component.
      Returns:
      the value of the onMineLeave record component
    • onMineTick

      public Consumer<ServerWorld> onMineTick()
      Returns the value of the onMineTick record component.
      Returns:
      the value of the onMineTick record component