类 BlockElement.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockElement.Deserializer
- 所有已实现的接口:
com.google.gson.JsonDeserializer<BlockElement>
- 封闭类:
BlockElement
public static class BlockElement.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockElement>
-
字段概要
字段修饰符和类型字段说明private static final int
private static final boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明deserialize
(com.google.gson.JsonElement p_111329_, Type p_111330_, com.google.gson.JsonDeserializationContext p_111331_) private Map
<Direction, BlockElementFace> filterNullFromFaces
(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_) private float
getAngle
(com.google.gson.JsonObject p_111343_) private Direction.Axis
getAxis
(com.google.gson.JsonObject p_111345_) private Map
<Direction, BlockElementFace> getFaces
(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) private Direction
private org.joml.Vector3f
getFrom
(com.google.gson.JsonObject p_111347_) private BlockElementRotation
getRotation
(com.google.gson.JsonObject p_111333_) private org.joml.Vector3f
getTo
(com.google.gson.JsonObject p_111353_) private org.joml.Vector3f
getVector3f
(com.google.gson.JsonObject p_111335_, String p_111336_)
-
字段详细资料
-
DEFAULT_SHADE
private static final boolean DEFAULT_SHADE- 另请参阅:
-
DEFAULT_LIGHT_EMISSION
private static final int DEFAULT_LIGHT_EMISSION- 另请参阅:
-
-
构造器详细资料
-
Deserializer
public Deserializer()
-
-
方法详细资料
-
deserialize
public BlockElement deserialize(com.google.gson.JsonElement p_111329_, Type p_111330_, com.google.gson.JsonDeserializationContext p_111331_) throws com.google.gson.JsonParseException - 指定者:
deserialize
在接口中com.google.gson.JsonDeserializer<BlockElement>
- 抛出:
com.google.gson.JsonParseException
-
getRotation
-
getAngle
private float getAngle(com.google.gson.JsonObject p_111343_) -
getAxis
-
getFaces
private Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) -
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_) -
getFacing
-
getTo
private org.joml.Vector3f getTo(com.google.gson.JsonObject p_111353_) -
getFrom
private org.joml.Vector3f getFrom(com.google.gson.JsonObject p_111347_) -
getVector3f
-