Interface ICustomer.Provider
- All Known Implementing Classes:
MobCustomer.Provider,NoCustomer
- Enclosing interface:
ICustomer
public static interface ICustomer.Provider
ITeam objects have one instance for each team, and cannot be serialized. ITeam.Provider are references to Teams, not the Teams themselves,
and so can be serialized, and have multiple instances per Team. A ITeam.Provider should uniquely identify the same Team every single time.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ICustomer.Provider> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ICustomer.Provider> static final com.mojang.serialization.Codec<ICustomer.Provider> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptiondefault ICustomer.ProvidergetUpdated(net.minecraft.world.level.Level level) provideCustomer(net.minecraft.world.level.Level level) static UnaryOperator<ICustomer.Provider> update(net.minecraft.world.level.Level level)
-
Field Details
-
TYPED_CODEC
UseCODECinstead. -
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ICustomer.Provider> STREAM_CODEC
-
-
Method Details
-
provideCustomer
-
getUpdated
-
getProviderType
ICustomer.ProviderType getProviderType() -
update
-