Class MutableDataProvider<T>
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.provider.MutableDataProvider<T>
- All Implemented Interfaces:
DataProvider<T>
- Direct Known Subclasses:
ConstantBooleanDataProvider
,ConstantItemStackDataProvider
,ConstantNumberDataProvider
,ConstantStringDataProvider
,HasPermissionDataProvider
,MatchesSpecDataProvider
,PartySlotDataProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.serialization.Codec<? extends DataProvider<T>>
protected final Supplier<? extends MutableDataProvider<T>>
protected final List<InputTypeData<?>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
MutableDataProvider
(com.mojang.serialization.Codec<? extends DataProvider<T>> codec, Supplier<? extends MutableDataProvider<T>> constructor) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends DataProvider<T>>
codec()
protected <T> void
transformData
(InputType<?> inputType, InputTypeData<T> data) protected <T> void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.provider.DataProvider
get, getKey
-
Field Details
-
codec
-
inputTypes
-
constructor
-
-
Constructor Details
-
MutableDataProvider
protected MutableDataProvider(com.mojang.serialization.Codec<? extends DataProvider<T>> codec, Supplier<? extends MutableDataProvider<T>> constructor)
-
-
Method Details
-
variable
-
codec
- Specified by:
codec
in interfaceDataProvider<T>
-
inputTypes
- Specified by:
inputTypes
in interfaceDataProvider<T>
-
fill
- Specified by:
fill
in interfaceDataProvider<T>
-
transformData
-