Class SpreadPlayersCommand.Position

  • Enclosing class:
    SpreadPlayersCommand

    static class SpreadPlayersCommand.Position
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double x  
      private double z  
    • Constructor Summary

      Constructors 
      Constructor Description
      Position()  
    • Field Detail

      • x

        private double x
      • z

        private double z
    • Constructor Detail

      • Position

        Position()
    • Method Detail

      • normalize

        void normalize()
      • getLength

        float getLength()
      • clamp

        public boolean clamp​(double p_198709_1_,
                             double p_198709_3_,
                             double p_198709_5_,
                             double p_198709_7_)
      • getSpawnY

        public int getSpawnY​(IBlockReader p_198710_1_,
                             int p_198710_2_)
      • isSafe

        public boolean isSafe​(IBlockReader p_241074_1_,
                              int p_241074_2_)
      • randomize

        public void randomize​(java.util.Random p_198711_1_,
                              double p_198711_2_,
                              double p_198711_4_,
                              double p_198711_6_,
                              double p_198711_8_)