类 LootContextTypes
- java.lang.Object
-
- net.minecraft.loot.context.LootContextTypes
-
public class LootContextTypes extends Object
- Mappings:
Namespace Name official djuintermediary net/minecraft/class_173named net/minecraft/loot/context/LootContextTypes
-
-
字段概要
字段 修饰符和类型 字段 说明 static LootContextTypeADVANCEMENT_ENTITYstatic LootContextTypeADVANCEMENT_REWARDstatic LootContextTypeBARTERstatic LootContextTypeBLOCKstatic LootContextTypeCHESTstatic LootContextTypeCOMMANDstatic LootContextTypeEMPTYstatic LootContextTypeENTITYstatic LootContextTypeFISHINGstatic LootContextTypeGENERICstatic LootContextTypeGIFTprivate static BiMap<Identifier,LootContextType>MAPstatic LootContextTypeSELECTOR
-
构造器概要
构造器 构造器 说明 LootContextTypes()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static @Nullable LootContextTypeget(Identifier id)static @Nullable IdentifiergetId(LootContextType type)private static LootContextTyperegister(String name, Consumer<LootContextType.Builder> type)
-
-
-
字段详细资料
-
MAP
private static final BiMap<Identifier,LootContextType> MAP
- Mappings:
Namespace Name Mixin selector official mLdju;m:Lcom/google/common/collect/BiMap;intermediary field_1178Lnet/minecraft/class_173;field_1178:Lcom/google/common/collect/BiMap;named MAPLnet/minecraft/loot/context/LootContextTypes;MAP:Lcom/google/common/collect/BiMap;
-
EMPTY
public static final LootContextType EMPTY
- Mappings:
Namespace Name Mixin selector official aLdju;a:Ldjt;intermediary field_1175Lnet/minecraft/class_173;field_1175:Lnet/minecraft/class_176;named EMPTYLnet/minecraft/loot/context/LootContextTypes;EMPTY:Lnet/minecraft/loot/context/LootContextType;
-
CHEST
public static final LootContextType CHEST
- Mappings:
Namespace Name Mixin selector official bLdju;b:Ldjt;intermediary field_1179Lnet/minecraft/class_173;field_1179:Lnet/minecraft/class_176;named CHESTLnet/minecraft/loot/context/LootContextTypes;CHEST:Lnet/minecraft/loot/context/LootContextType;
-
COMMAND
public static final LootContextType COMMAND
- Mappings:
Namespace Name Mixin selector official cLdju;c:Ldjt;intermediary field_20761Lnet/minecraft/class_173;field_20761:Lnet/minecraft/class_176;named COMMANDLnet/minecraft/loot/context/LootContextTypes;COMMAND:Lnet/minecraft/loot/context/LootContextType;
-
SELECTOR
public static final LootContextType SELECTOR
- Mappings:
Namespace Name Mixin selector official dLdju;d:Ldjt;intermediary field_20762Lnet/minecraft/class_173;field_20762:Lnet/minecraft/class_176;named SELECTORLnet/minecraft/loot/context/LootContextTypes;SELECTOR:Lnet/minecraft/loot/context/LootContextType;
-
FISHING
public static final LootContextType FISHING
- Mappings:
Namespace Name Mixin selector official eLdju;e:Ldjt;intermediary field_1176Lnet/minecraft/class_173;field_1176:Lnet/minecraft/class_176;named FISHINGLnet/minecraft/loot/context/LootContextTypes;FISHING:Lnet/minecraft/loot/context/LootContextType;
-
ENTITY
public static final LootContextType ENTITY
- Mappings:
Namespace Name Mixin selector official fLdju;f:Ldjt;intermediary field_1173Lnet/minecraft/class_173;field_1173:Lnet/minecraft/class_176;named ENTITYLnet/minecraft/loot/context/LootContextTypes;ENTITY:Lnet/minecraft/loot/context/LootContextType;
-
GIFT
public static final LootContextType GIFT
- Mappings:
Namespace Name Mixin selector official gLdju;g:Ldjt;intermediary field_16235Lnet/minecraft/class_173;field_16235:Lnet/minecraft/class_176;named GIFTLnet/minecraft/loot/context/LootContextTypes;GIFT:Lnet/minecraft/loot/context/LootContextType;
-
BARTER
public static final LootContextType BARTER
- Mappings:
Namespace Name Mixin selector official hLdju;h:Ldjt;intermediary field_22403Lnet/minecraft/class_173;field_22403:Lnet/minecraft/class_176;named BARTERLnet/minecraft/loot/context/LootContextTypes;BARTER:Lnet/minecraft/loot/context/LootContextType;
-
ADVANCEMENT_REWARD
public static final LootContextType ADVANCEMENT_REWARD
- Mappings:
Namespace Name Mixin selector official iLdju;i:Ldjt;intermediary field_1174Lnet/minecraft/class_173;field_1174:Lnet/minecraft/class_176;named ADVANCEMENT_REWARDLnet/minecraft/loot/context/LootContextTypes;ADVANCEMENT_REWARD:Lnet/minecraft/loot/context/LootContextType;
-
ADVANCEMENT_ENTITY
public static final LootContextType ADVANCEMENT_ENTITY
- Mappings:
Namespace Name Mixin selector official jLdju;j:Ldjt;intermediary field_24423Lnet/minecraft/class_173;field_24423:Lnet/minecraft/class_176;named ADVANCEMENT_ENTITYLnet/minecraft/loot/context/LootContextTypes;ADVANCEMENT_ENTITY:Lnet/minecraft/loot/context/LootContextType;
-
GENERIC
public static final LootContextType GENERIC
- Mappings:
Namespace Name Mixin selector official kLdju;k:Ldjt;intermediary field_1177Lnet/minecraft/class_173;field_1177:Lnet/minecraft/class_176;named GENERICLnet/minecraft/loot/context/LootContextTypes;GENERIC:Lnet/minecraft/loot/context/LootContextType;
-
BLOCK
public static final LootContextType BLOCK
- Mappings:
Namespace Name Mixin selector official lLdju;l:Ldjt;intermediary field_1172Lnet/minecraft/class_173;field_1172:Lnet/minecraft/class_176;named BLOCKLnet/minecraft/loot/context/LootContextTypes;BLOCK:Lnet/minecraft/loot/context/LootContextType;
-
-
方法详细资料
-
register
private static LootContextType register(String name, Consumer<LootContextType.Builder> type)
- Mappings:
Namespace Name Mixin selector official aLdju;a(Ljava/lang/String;Ljava/util/function/Consumer;)Ldjt;intermediary method_759Lnet/minecraft/class_173;method_759(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/class_176;named registerLnet/minecraft/loot/context/LootContextTypes;register(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/loot/context/LootContextType;
-
get
@Nullable public static @Nullable LootContextType get(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLdju;a(Lwp;)Ldjt;intermediary method_757Lnet/minecraft/class_173;method_757(Lnet/minecraft/class_2960;)Lnet/minecraft/class_176;named getLnet/minecraft/loot/context/LootContextTypes;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/context/LootContextType;
-
getId
@Nullable public static @Nullable Identifier getId(LootContextType type)
- Mappings:
Namespace Name Mixin selector official aLdju;a(Ldjt;)Lwp;intermediary method_762Lnet/minecraft/class_173;method_762(Lnet/minecraft/class_176;)Lnet/minecraft/class_2960;named getIdLnet/minecraft/loot/context/LootContextTypes;getId(Lnet/minecraft/loot/context/LootContextType;)Lnet/minecraft/util/Identifier;
-
-