类 Property


  • public abstract class Property
    extends Object
    An integer property that is stored in a ScreenHandler.

    Property instances are used for tracking integer properties in property delegates and other sources of integer properties, and sending needed content updates to listeners.

    另请参阅:
    ScreenHandler.addProperty(net.minecraft.screen.Property)
    Mappings:
    Namespace Name
    official bmb
    intermediary net/minecraft/class_3915
    named net/minecraft/screen/Property
    • 字段详细资料

      • oldValue

        private int oldValue
        Mappings:
        Namespace Name Mixin selector
        official a Lbmb;a:I
        intermediary field_17307 Lnet/minecraft/class_3915;field_17307:I
        named oldValue Lnet/minecraft/screen/Property;oldValue:I
    • 构造器详细资料

      • Property

        public Property()
    • 方法详细资料

      • create

        public static Property create​(PropertyDelegate delegate,
                                      int index)
        Creates a new property that accesses the index of the delegate.
        Mappings:
        Namespace Name Mixin selector
        official a Lbmb;a(Lblv;I)Lbmb;
        intermediary method_17405 Lnet/minecraft/class_3915;method_17405(Lnet/minecraft/class_3913;I)Lnet/minecraft/class_3915;
        named create Lnet/minecraft/screen/Property;create(Lnet/minecraft/screen/PropertyDelegate;I)Lnet/minecraft/screen/Property;
      • create

        public static Property create​(int[] array,
                                      int index)
        Creates a new property that accesses the index of the array.
        Mappings:
        Namespace Name Mixin selector
        official a Lbmb;a([II)Lbmb;
        intermediary method_17406 Lnet/minecraft/class_3915;method_17406([II)Lnet/minecraft/class_3915;
        named create Lnet/minecraft/screen/Property;create([II)Lnet/minecraft/screen/Property;
      • create

        public static Property create()
        Creates a new property that is not attached to any other objects.
        Mappings:
        Namespace Name Mixin selector
        official a Lbmb;a()Lbmb;
        intermediary method_17403 Lnet/minecraft/class_3915;method_17403()Lnet/minecraft/class_3915;
        named create Lnet/minecraft/screen/Property;create()Lnet/minecraft/screen/Property;
      • get

        public abstract int get()
        Mappings:
        Namespace Name Mixin selector
        official b Lbmb;b()I
        intermediary method_17407 Lnet/minecraft/class_3915;method_17407()I
        named get Lnet/minecraft/screen/Property;get()I
      • set

        public abstract void set​(int value)
        Mappings:
        Namespace Name Mixin selector
        official a Lbmb;a(I)V
        intermediary method_17404 Lnet/minecraft/class_3915;method_17404(I)V
        named set Lnet/minecraft/screen/Property;set(I)V
      • hasChanged

        public boolean hasChanged()
        Returns true if the value of this property has changed since the last call to hasChanged().
        Mappings:
        Namespace Name Mixin selector
        official c Lbmb;c()Z
        intermediary method_17408 Lnet/minecraft/class_3915;method_17408()Z
        named hasChanged Lnet/minecraft/screen/Property;hasChanged()Z