Package net.minecraft.screen
Class Property
java.lang.Object
net.minecraft.screen.Property
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Property
create()
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 theindex
of thearray
.static Property
create
(PropertyDelegate delegate, int index) Creates a new property that accesses theindex
of thedelegate
.abstract int
get()
boolean
Returns true if the value of this property has changed since the last call tohasChanged()
.abstract void
set
(int value)
-
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
Creates a new property that accesses theindex
of thedelegate
.- 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
Creates a new property that accesses theindex
of thearray
.- 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
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 tohasChanged()
.- 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
-