Package net.minecraft.data
Class BlockModeInfo<T>
- java.lang.Object
-
- net.minecraft.data.BlockModeInfo<T>
-
public class BlockModeInfo<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BlockModeInfo.Field
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
key
private java.util.function.Function<T,com.google.gson.JsonElement>
serializer
-
Constructor Summary
Constructors Constructor Description BlockModeInfo(java.lang.String p_i232543_1_, java.util.function.Function<T,com.google.gson.JsonElement> p_i232543_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
BlockModeInfo.Field
withValue(T p_240213_1_)
-
-
-
Field Detail
-
key
private final java.lang.String key
-
serializer
private final java.util.function.Function<T,com.google.gson.JsonElement> serializer
-
-
Constructor Detail
-
BlockModeInfo
public BlockModeInfo(java.lang.String p_i232543_1_, java.util.function.Function<T,com.google.gson.JsonElement> p_i232543_2_)
-
-
Method Detail
-
withValue
public BlockModeInfo.Field withValue(T p_240213_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-