Class BlockPart.Deserializer

java.lang.Object
net.minecraft.client.renderer.model.BlockPart.Deserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockPart>
Enclosing class:
BlockPart

public static class BlockPart.Deserializer extends Object implements com.google.gson.JsonDeserializer<BlockPart>
  • Constructor Details

    • Deserializer

      public Deserializer()
  • Method Details

    • deserialize

      public BlockPart deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<BlockPart>
      Throws:
      com.google.gson.JsonParseException
    • getRotation

      @Nullable private BlockPartRotation getRotation(com.google.gson.JsonObject p_178256_1_)
    • getAngle

      private float getAngle(com.google.gson.JsonObject p_178255_1_)
    • getAxis

      private Direction.Axis getAxis(com.google.gson.JsonObject p_178252_1_)
    • getFaces

      private Map<Direction,BlockPartFace> getFaces(com.google.gson.JsonDeserializationContext p_178250_1_, com.google.gson.JsonObject p_178250_2_)
    • filterNullFromFaces

      private Map<Direction,BlockPartFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_178253_1_, com.google.gson.JsonObject p_178253_2_)
    • getFacing

      private Direction getFacing(String p_178248_1_)
    • getTo

      private Vector3f getTo(com.google.gson.JsonObject p_199329_1_)
    • getFrom

      private Vector3f getFrom(com.google.gson.JsonObject p_199330_1_)
    • getVector3f

      private Vector3f getVector3f(com.google.gson.JsonObject p_199328_1_, String p_199328_2_)