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 named net/minecraft/screen/Property
intermediary net/minecraft/class_3915
official ctv
-
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 named oldValue
Lnet/minecraft/screen/Property;oldValue:I
intermediary field_17307
Lnet/minecraft/class_3915;field_17307:I
official a
Lctv;a:I
-
-
Constructor Details
-
Property
public Property()
-
-
Method Details
-
create
Creates a new property that accesses theindex
of thedelegate
.- 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
Lctv;a(Lctn;I)Lctv;
-
create
Creates a new property that accesses theindex
of thearray
.- 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
Lctv;a([II)Lctv;
-
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
Lctv;a()Lctv;
-
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
Lctv;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
Lctv;a(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 named hasChanged
Lnet/minecraft/screen/Property;hasChanged()Z
intermediary method_17408
Lnet/minecraft/class_3915;method_17408()Z
official c
Lctv;c()Z
-