Class WorldPropertyValidator<T>

  • Type Parameters:
    T - The type of the property that should be validated.
    All Implemented Interfaces:
    me.main__.util.SerializationConfig.Validator<T>

    public class WorldPropertyValidator<T>
    extends me.main__.util.SerializationConfig.ObjectUsingValidator<T,​MVWorld>
    Validates world-property-changes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T validateChange​(java.lang.String property, T newValue, T oldValue, MVWorld object)
      • Methods inherited from class me.main__.util.SerializationConfig.ObjectUsingValidator

        validateChange
      • Methods inherited from class java.lang.Object

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

      • WorldPropertyValidator

        public WorldPropertyValidator()
    • Method Detail

      • validateChange

        public T validateChange​(java.lang.String property,
                                T newValue,
                                T oldValue,
                                MVWorld object)
                         throws me.main__.util.SerializationConfig.ChangeDeniedException
        Specified by:
        validateChange in class me.main__.util.SerializationConfig.ObjectUsingValidator<T,​MVWorld>
        Throws:
        me.main__.util.SerializationConfig.ChangeDeniedException