类 Property
- java.lang.Object
-
- net.minecraft.screen.Property
-
public abstract class Property extends Object
An integer property that is stored in aScreenHandler.Propertyinstances are used for tracking integer properties in property delegates and other sources of integer properties, and sending needed content updates to listeners.- 另请参阅:
ScreenHandler.addProperty(net.minecraft.screen.Property)- Mappings:
Namespace Name official bmbintermediary net/minecraft/class_3915named net/minecraft/screen/Property
-
-
字段概要
字段 修饰符和类型 字段 说明 private intoldValue
-
构造器概要
构造器 构造器 说明 Property()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 static 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()booleanhasChanged()Returns true if the value of this property has changed since the last call tohasChanged().abstract voidset(int value)
-
-
-
方法详细资料
-
create
public static Property create(PropertyDelegate delegate, int index)
Creates a new property that accesses theindexof thedelegate.- Mappings:
Namespace Name Mixin selector official aLbmb;a(Lblv;I)Lbmb;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
public static Property create(int[] array, int index)
Creates a new property that accesses theindexof thearray.- Mappings:
Namespace Name Mixin selector official aLbmb;a([II)Lbmb;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
public static Property create()
Creates a new property that is not attached to any other objects.- Mappings:
Namespace Name Mixin selector official aLbmb;a()Lbmb;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 bLbmb;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 aLbmb;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 cLbmb;c()Zintermediary method_17408Lnet/minecraft/class_3915;method_17408()Znamed hasChangedLnet/minecraft/screen/Property;hasChanged()Z
-
-