Class ServerProperty<T>
java.lang.Object
net.minecraft.world.inventory.DataSlot
com.refinedmods.refinedstorage.common.support.containermenu.ServerProperty<T>
- All Implemented Interfaces:
Property<T>
public class ServerProperty<T>
extends net.minecraft.world.inventory.DataSlot
implements Property<T>
-
Constructor Summary
ConstructorDescriptionServerProperty
(PropertyType<T> type, Supplier<T> supplier, Consumer<T> consumer) -
Method Summary
Methods inherited from class net.minecraft.world.inventory.DataSlot
checkAndClearUpdateFlag, forContainer, shared, standalone
-
Constructor Details
-
Method Details
-
getType
-
getValue
-
getDataSlot
public net.minecraft.world.inventory.DataSlot getDataSlot()- Specified by:
getDataSlot
in interfaceProperty<T>
-
get
public int get()- Specified by:
get
in classnet.minecraft.world.inventory.DataSlot
-
set
public void set(int newValue) - Specified by:
set
in classnet.minecraft.world.inventory.DataSlot
-