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
named net/minecraft/screen/Property
intermediary net/minecraft/class_3915
official cqo
  • 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
      named oldValue Lnet/minecraft/screen/Property;oldValue:I
      intermediary field_17307 Lnet/minecraft/class_3915;field_17307:I
      official a Lcqo;a: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
      named create Lnet/minecraft/screen/Property;create(Lnet/minecraft/screen/PropertyDelegate;I)Lnet/minecraft/screen/Property;
      intermediary method_17405 Lnet/minecraft/class_3915;method_17405(Lnet/minecraft/class_3913;I)Lnet/minecraft/class_3915;
      official a Lcqo;a(Lcqg;I)Lcqo;
    • 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
      named create Lnet/minecraft/screen/Property;create([II)Lnet/minecraft/screen/Property;
      intermediary method_17406 Lnet/minecraft/class_3915;method_17406([II)Lnet/minecraft/class_3915;
      official a Lcqo;a([II)Lcqo;
    • create

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

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

      public abstract void set(int value)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/screen/Property;set(I)V
      intermediary method_17404 Lnet/minecraft/class_3915;method_17404(I)V
      official a Lcqo;a(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
      named hasChanged Lnet/minecraft/screen/Property;hasChanged()Z
      intermediary method_17408 Lnet/minecraft/class_3915;method_17408()Z
      official c Lcqo;c()Z