net.minecraft.server.dedicated.management.dispatch

public record GameRuleRpcDispatcher$RuleEntry<T>

net.minecraft.server.jsonrpc.methods.GameRulesService$GameRuleUpdate
net.minecraft.class_11844$class_12254
net.minecraft.server.dedicated.management.dispatch.GameRuleRpcDispatcher$RuleEntry

Field summary

Modifier and TypeField
private final GameRule<T>
gameRule
comp_5161
gameRule
private final T
value
comp_5162
value
public static final com.mojang.serialization.Codec<GameRuleRpcDispatcher$RuleEntry<?>>
TYPED_CODEC
field_64088
TYPED_CODEC
public static final com.mojang.serialization.Codec<GameRuleRpcDispatcher$RuleEntry<?>>
CODEC
field_64089
UNTYPED_CODEC

Constructor summary

ModifierConstructor
public (GameRule<T> gameRule, T value)

Method summary

Modifier and TypeMethod
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher$RuleEntry<T>>
getValueCodec(GameRule<T> gameRule)
method_76050(class_12279<T> arg0)
untypedCodec(GameRule<T> rule)
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher$RuleEntry<T>>
getValueAndTypeCodec(GameRule<T> gameRule)
method_76054(class_12279<T> arg0)
typedCodec(GameRule<T> rule)
private static <T> GameRuleRpcDispatcher$RuleEntry<T>
getUntypedRule(GameRule<T> gameRule, GameRuleType readType, T value)
method_76052(class_12279<T> arg0, class_11845 arg1, T arg2)
validateType(GameRule<T> rule, GameRuleType type, T value)
public GameRule<T>
gameRule()
comp_5161()
gameRule()
public T
value()
comp_5162()
value()
private static com.mojang.datafixers.kinds.App
lambda$getValueAndTypeCodec$0(GameRule arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_76051(class_12279 arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_76051(GameRule arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static GameRuleRpcDispatcher$RuleEntry
lambda$getValueAndTypeCodec$2(GameRule arg0, GameRuleType arg1, Object arg2)
method_76055(class_12279 arg0, class_11845 arg1, Object arg2)
method_76055(GameRule arg0, GameRuleType type, Object value)
private static GameRuleType
lambda$getValueAndTypeCodec$1(GameRulesService$GameRuleUpdate arg0)
method_76049(class_11844$class_12254 arg0)
method_76049(GameRuleRpcDispatcher$RuleEntry entry)
private static GameRuleRpcDispatcher$RuleEntry
lambda$getValueCodec$0(GameRule arg0, Object arg1)
method_76053(class_12279 arg0, Object arg1)
method_76053(GameRule arg0, Object entry)