Class BlockPart.Deserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<BlockPart>
    Enclosing class:
    BlockPart

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

      Constructors 
      Constructor Description
      Deserializer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BlockPart deserialize​(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_)  
      private java.util.Map<Direction,​BlockPartFace> filterNullFromFaces​(com.google.gson.JsonDeserializationContext p_178253_1_, com.google.gson.JsonObject p_178253_2_)  
      private float getAngle​(com.google.gson.JsonObject p_178255_1_)  
      private Direction.Axis getAxis​(com.google.gson.JsonObject p_178252_1_)  
      private java.util.Map<Direction,​BlockPartFace> getFaces​(com.google.gson.JsonDeserializationContext p_178250_1_, com.google.gson.JsonObject p_178250_2_)  
      private Direction getFacing​(java.lang.String p_178248_1_)  
      private Vector3f getFrom​(com.google.gson.JsonObject p_199330_1_)  
      private BlockPartRotation getRotation​(com.google.gson.JsonObject p_178256_1_)  
      private Vector3f getTo​(com.google.gson.JsonObject p_199329_1_)  
      private Vector3f getVector3f​(com.google.gson.JsonObject p_199328_1_, java.lang.String p_199328_2_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Deserializer

        public Deserializer()
    • Method Detail

      • deserialize

        public BlockPart deserialize​(com.google.gson.JsonElement p_deserialize_1_,
                                     java.lang.reflect.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 java.util.Map<Direction,​BlockPartFace> getFaces​(com.google.gson.JsonDeserializationContext p_178250_1_,
                                                                      com.google.gson.JsonObject p_178250_2_)
      • filterNullFromFaces

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

        private Direction getFacing​(java.lang.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_,
                                     java.lang.String p_199328_2_)