类 LootContextType
- java.lang.Object
-
- net.minecraft.loot.context.LootContextType
-
public class LootContextType extends Object
- Mappings:
Namespace Name official djtintermediary net/minecraft/class_176named net/minecraft/loot/context/LootContextType
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLootContextType.Builder
-
字段概要
字段 修饰符和类型 字段 说明 private Set<LootContextParameter<?>>allowedprivate Set<LootContextParameter<?>>required
-
构造器概要
构造器 限定符 构造器 说明 privateLootContextType(Set<LootContextParameter<?>> required, Set<LootContextParameter<?>> allowed)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static LootContextType.Buildercreate()Set<LootContextParameter<?>>getAllowed()Set<LootContextParameter<?>>getRequired()booleanisAllowed(LootContextParameter<?> parameter)StringtoString()voidvalidate(LootTableReporter reporter, LootContextAware parameterConsumer)
-
-
-
字段详细资料
-
required
private final Set<LootContextParameter<?>> required
- Mappings:
Namespace Name Mixin selector official aLdjt;a:Ljava/util/Set;intermediary field_1216Lnet/minecraft/class_176;field_1216:Ljava/util/Set;named requiredLnet/minecraft/loot/context/LootContextType;required:Ljava/util/Set;
-
allowed
private final Set<LootContextParameter<?>> allowed
- Mappings:
Namespace Name Mixin selector official bLdjt;b:Ljava/util/Set;intermediary field_1215Lnet/minecraft/class_176;field_1215:Ljava/util/Set;named allowedLnet/minecraft/loot/context/LootContextType;allowed:Ljava/util/Set;
-
-
构造器详细资料
-
LootContextType
private LootContextType(Set<LootContextParameter<?>> required, Set<LootContextParameter<?>> allowed)
- Mappings:
Namespace Name Mixin selector official <init>Ldjt;<init>(Ljava/util/Set;Ljava/util/Set;)Vintermediary <init>Lnet/minecraft/class_176;<init>(Ljava/util/Set;Ljava/util/Set;)Vnamed <init>Lnet/minecraft/loot/context/LootContextType;<init>(Ljava/util/Set;Ljava/util/Set;)V
-
-
方法详细资料
-
isAllowed
public boolean isAllowed(LootContextParameter<?> parameter)
- Mappings:
Namespace Name Mixin selector official aLdjt;a(Ldjs;)Zintermediary method_35553Lnet/minecraft/class_176;method_35553(Lnet/minecraft/class_169;)Znamed isAllowedLnet/minecraft/loot/context/LootContextType;isAllowed(Lnet/minecraft/loot/context/LootContextParameter;)Z
-
getRequired
public Set<LootContextParameter<?>> getRequired()
- Mappings:
Namespace Name Mixin selector official aLdjt;a()Ljava/util/Set;intermediary method_778Lnet/minecraft/class_176;method_778()Ljava/util/Set;named getRequiredLnet/minecraft/loot/context/LootContextType;getRequired()Ljava/util/Set;
-
getAllowed
public Set<LootContextParameter<?>> getAllowed()
- Mappings:
Namespace Name Mixin selector official bLdjt;b()Ljava/util/Set;intermediary method_777Lnet/minecraft/class_176;method_777()Ljava/util/Set;named getAllowedLnet/minecraft/loot/context/LootContextType;getAllowed()Ljava/util/Set;
-
toString
public String toString()
-
validate
public void validate(LootTableReporter reporter, LootContextAware parameterConsumer)
- Mappings:
Namespace Name Mixin selector official aLdjt;a(Ldhx;Ldhq;)Vintermediary method_776Lnet/minecraft/class_176;method_776(Lnet/minecraft/class_58;Lnet/minecraft/class_46;)Vnamed validateLnet/minecraft/loot/context/LootContextType;validate(Lnet/minecraft/loot/LootTableReporter;Lnet/minecraft/loot/context/LootContextAware;)V
-
create
public static LootContextType.Builder create()
- Mappings:
Namespace Name Mixin selector official cLdjt;c()Ldjt$a;intermediary method_35554Lnet/minecraft/class_176;method_35554()Lnet/minecraft/class_176$class_177;named createLnet/minecraft/loot/context/LootContextType;create()Lnet/minecraft/loot/context/LootContextType$Builder;
-
-