Class Property

java.lang.Object
net.minecraft.screen.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.

See Also:
Mappings:
Namespace Name
official bqg
intermediary net/minecraft/class_3915
named net/minecraft/screen/Property
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Property
    Creates a new property that is not attached to any other objects.
    static Property
    create(int[] array, int index)
    Creates a new property that accesses the index of the array.
    static Property
    create(PropertyDelegate delegate, int index)
    Creates a new property that accesses the index of the delegate.
    abstract int
    get()
     
    boolean
    Returns true if the value of this property has changed since the last call to hasChanged().
    abstract void
    set(int value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • oldValue

      private int oldValue
      Mappings:
      Namespace Name Mixin selector
      official a Lbqg;a:I
      intermediary field_17307 Lnet/minecraft/class_3915;field_17307:I
      named oldValue Lnet/minecraft/screen/Property;oldValue:I
  • Constructor Details

    • Property

      public Property()
  • Method Details

    • 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 Lbqg;a(Lbqa;I)Lbqg;
      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 Lbqg;a([II)Lbqg;
      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 Lbqg;a()Lbqg;
      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 Lbqg;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 Lbqg;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 Lbqg;c()Z
      intermediary method_17408 Lnet/minecraft/class_3915;method_17408()Z
      named hasChanged Lnet/minecraft/screen/Property;hasChanged()Z