Forgets all existing deltas and sets the values to the new value. @param value
(int value)
| 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"); |
no test coverage detected