Class PartStateOffsetHandler<P extends IPartType>
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateOffsetHandler<P>
Handles dynamic offsets inside part states.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
final it.unimi.dsi.fastutil.ints.IntSet
final it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.network.chat.MutableComponent>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.MutableComponent
getOffsetVariableError
(int slot) org.cyclops.cyclopscore.inventory.SimpleInventory
getOffsetVariablesInventory
(IPartState<P> partState) void
initializeVariableEvaluators
(org.cyclops.cyclopscore.inventory.SimpleInventory offsetVariablesInventory, PartTarget target) void
protected void
reloadOffsetVariable
(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target, int slot) void
reloadOffsetVariables
(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target) void
updateOffsetVariables
(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target)
-
Field Details
-
offsetVariableEvaluators
public final List<InventoryVariableEvaluator<ValueTypeInteger.ValueInteger>> offsetVariableEvaluators -
offsetVariablesSlotMessages
public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.network.chat.MutableComponent> offsetVariablesSlotMessages -
offsetVariablesDirty
public boolean offsetVariablesDirty -
offsetVariableSlotDirty
public final it.unimi.dsi.fastutil.ints.IntSet offsetVariableSlotDirty -
offsetVariableListeners
-
-
Constructor Details
-
PartStateOffsetHandler
public PartStateOffsetHandler()
-
-
Method Details
-
initializeVariableEvaluators
public void initializeVariableEvaluators(org.cyclops.cyclopscore.inventory.SimpleInventory offsetVariablesInventory, PartTarget target) -
updateOffsetVariables
public void updateOffsetVariables(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target) -
markOffsetVariablesChanged
public void markOffsetVariablesChanged() -
getOffsetVariablesInventory
public org.cyclops.cyclopscore.inventory.SimpleInventory getOffsetVariablesInventory(IPartState<P> partState) -
reloadOffsetVariables
public void reloadOffsetVariables(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target) -
getOffsetVariableError
@Nullable public net.minecraft.network.chat.MutableComponent getOffsetVariableError(int slot) -
reloadOffsetVariable
protected void reloadOffsetVariable(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target, int slot)
-