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 cbtintermediary net/minecraft/class_3915named net/minecraft/screen/Property
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Propertycreate()Creates a new property that is not attached to any other objects.static Propertycreate(int[] array, int index) Creates a new property that accesses theindexof thearray.static Propertycreate(PropertyDelegate delegate, int index) Creates a new property that accesses theindexof thedelegate.abstract intget()booleanReturns true if the value of this property has changed since the last call tohasChanged().abstract voidset(int value)
-
Field Details
-
oldValue
private int oldValue- Mappings:
Namespace Name Mixin selector official aLcbt;a:Iintermediary field_17307Lnet/minecraft/class_3915;field_17307:Inamed oldValueLnet/minecraft/screen/Property;oldValue:I
-
-
Constructor Details
-
Property
public Property()
-
-
Method Details
-
create
Creates a new property that accesses theindexof thedelegate.- Mappings:
Namespace Name Mixin selector official aLcbt;a(Lcbn;I)Lcbt;intermediary method_17405Lnet/minecraft/class_3915;method_17405(Lnet/minecraft/class_3913;I)Lnet/minecraft/class_3915;named createLnet/minecraft/screen/Property;create(Lnet/minecraft/screen/PropertyDelegate;I)Lnet/minecraft/screen/Property;
-
create
Creates a new property that accesses theindexof thearray.- Mappings:
Namespace Name Mixin selector official aLcbt;a([II)Lcbt;intermediary method_17406Lnet/minecraft/class_3915;method_17406([II)Lnet/minecraft/class_3915;named createLnet/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 aLcbt;a()Lcbt;intermediary method_17403Lnet/minecraft/class_3915;method_17403()Lnet/minecraft/class_3915;named createLnet/minecraft/screen/Property;create()Lnet/minecraft/screen/Property;
-
get
public abstract int get()- Mappings:
Namespace Name Mixin selector official bLcbt;b()Iintermediary method_17407Lnet/minecraft/class_3915;method_17407()Inamed getLnet/minecraft/screen/Property;get()I
-
set
public abstract void set(int value) - Mappings:
Namespace Name Mixin selector official aLcbt;a(I)Vintermediary method_17404Lnet/minecraft/class_3915;method_17404(I)Vnamed setLnet/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 cLcbt;c()Zintermediary method_17408Lnet/minecraft/class_3915;method_17408()Znamed hasChangedLnet/minecraft/screen/Property;hasChanged()Z
-