Package net.minecraft.resource
Class ResourceReloader.Store
java.lang.Object
net.minecraft.resource.ResourceReloader.Store
- Enclosing interface:
ResourceReloader
A data store that can be used for sharing state between resource reloaders.
Values can be inserted during
prepareSharedState
and retrieved during reload.- Mappings:
Namespace Name named net/minecraft/resource/ResourceReloader$Storeintermediary net/minecraft/class_3302$class_11558official baj$b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceManagerprivate final Map<ResourceReloader.Key<?>, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetOrThrow(ResourceReloader.Key<T> key) Returns the value associated with the given key.<T> voidput(ResourceReloader.Key<T> key, T value) Inserts a value associated with the given key into the data store.
-
Field Details
-
resourceManager
- Mappings:
Namespace Name Mixin selector named resourceManagerLnet/minecraft/resource/ResourceReloader$Store;resourceManager:Lnet/minecraft/resource/ResourceManager;intermediary field_61161Lnet/minecraft/class_3302$class_11558;field_61161:Lnet/minecraft/class_3300;official aLbaj$b;a:Lbap;
-
store
- Mappings:
Namespace Name Mixin selector named storeLnet/minecraft/resource/ResourceReloader$Store;store:Ljava/util/Map;intermediary field_61162Lnet/minecraft/class_3302$class_11558;field_61162:Ljava/util/Map;official bLbaj$b;b:Ljava/util/Map;
-
-
Constructor Details
-
Store
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/ResourceReloader$Store;<init>(Lnet/minecraft/resource/ResourceManager;)Vintermediary <init>Lnet/minecraft/class_3302$class_11558;<init>(Lnet/minecraft/class_3300;)Vofficial <init>Lbaj$b;<init>(Lbap;)V
-
-
Method Details
-
getResourceManager
- Mappings:
Namespace Name Mixin selector named getResourceManagerLnet/minecraft/resource/ResourceReloader$Store;getResourceManager()Lnet/minecraft/resource/ResourceManager;intermediary method_72361Lnet/minecraft/class_3302$class_11558;method_72361()Lnet/minecraft/class_3300;official aLbaj$b;a()Lbap;
-
put
Inserts a value associated with the given key into the data store.- Mappings:
Namespace Name Mixin selector named putLnet/minecraft/resource/ResourceReloader$Store;put(Lnet/minecraft/resource/ResourceReloader$Key;Ljava/lang/Object;)Vintermediary method_72363Lnet/minecraft/class_3302$class_11558;method_72363(Lnet/minecraft/class_3302$class_11559;Ljava/lang/Object;)Vofficial aLbaj$b;a(Lbaj$c;Ljava/lang/Object;)V
-
getOrThrow
Returns the value associated with the given key.. This is safe to call duringreloadif any resource reloader has previously inserted a value with the same key object duringprepareSharedState.- Returns:
- the value associated with the given key
- Mappings:
Namespace Name Mixin selector named getOrThrowLnet/minecraft/resource/ResourceReloader$Store;getOrThrow(Lnet/minecraft/resource/ResourceReloader$Key;)Ljava/lang/Object;intermediary method_72362Lnet/minecraft/class_3302$class_11558;method_72362(Lnet/minecraft/class_3302$class_11559;)Ljava/lang/Object;official aLbaj$b;a(Lbaj$c;)Ljava/lang/Object;
-