Package net.minecraft.loot.slot
Record Class EmptySlotSourceType
java.lang.Object
java.lang.Record
net.minecraft.loot.slot.EmptySlotSourceType
- All Implemented Interfaces:
LootContextAware,SlotSource
- Mappings:
Namespace Name named net/minecraft/loot/slot/EmptySlotSourceTypeintermediary net/minecraft/class_12266official dtr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EmptySlotSourceType> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEmptySlotSourceTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<EmptySlotSourceType> getCodec()final inthashCode()Returns a hash code value for this object.stream(LootContext context) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAware
getAllowedParameters, validate
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/loot/slot/EmptySlotSourceType;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_64151Lnet/minecraft/class_12266;field_64151:Lcom/mojang/serialization/MapCodec;official aLdtr;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
EmptySlotSourceType
public EmptySlotSourceType()Creates an instance of aEmptySlotSourceTyperecord class.
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceSlotSource- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/loot/slot/SlotSource;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_76106Lnet/minecraft/class_12275;method_76106()Lcom/mojang/serialization/MapCodec;official aLdtx;a()Lcom/mojang/serialization/MapCodec;
-
stream
- Specified by:
streamin interfaceSlotSource- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/loot/slot/SlotSource;stream(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/loot/slot/ItemStream;intermediary method_76108Lnet/minecraft/class_12275;method_76108(Lnet/minecraft/class_47;)Lnet/minecraft/class_12271;official aLdtx;a(Lfmr;)Ldtw;
-
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.
-