MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / setValue

Method setValue

common/buildcraft/lib/delta/DeltaInt.java:143–152  ·  view source on GitHub ↗

Forgets all existing deltas and sets the values to the new value. @param value

(int value)

Source from the content-addressed store, hash-verified

141 *
142 * @param value */
143 public void setValue(int value) {
144 changingEntries.clear();
145 staticStartValue = value;
146 staticEndValue = value;
147 dynamicValueLast = value;
148 dynamicValueThis = value;
149 manager.sendDeltaMessage(EnumDeltaMessage.SET_VALUE, this, (buffer) -> {
150 buffer.writeInt(value);
151 });
152 }
153
154 public void readFromNBT(NBTTagCompound nbt) {
155 tick = nbt.getLong("tick");

Callers 5

updateRecipesMethod · 0.80
activateNextRecipeMethod · 0.80
queryPropertyMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 3

clearMethod · 0.65
sendDeltaMessageMethod · 0.65
writeIntMethod · 0.45

Tested by

no test coverage detected