PreventInventoryAccessUpdate class
Пакет: com.hypixel.hytale.protocol
Файл: com/hypixel/hytale/protocol/PreventInventoryAccessUpdate.java
extends: ComponentUpdate
Поля (3)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
int |
NULLABLE_BIT_FIELD_SIZE |
|
long |
var2 |
|
PreventInventoryAccessUpdate |
var3 |
Методы (10)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
public |
PreventInventoryAccessUpdate |
clonePreventInventoryAccessUpdate clone() |
|
|
if if(var1 < 0) |
|
|
if if(var2 != null) |
static |
void |
requireBoundsvoid requireBounds(MemorySegment var0, int var1) |
abstract |
|
requireBounds requireBounds(var0, var1) |
static |
PreventInventoryAccessUpdate |
toObjectPreventInventoryAccessUpdate toObject(MemorySegment var0) |
static |
PreventInventoryAccessUpdate |
toObjectPreventInventoryAccessUpdate toObject(MemorySegment var0, int var1) |
static |
PreventInventoryAccessUpdate |
toObjectPreventInventoryAccessUpdate toObject(MemorySegment var0, int var1, @Nullable ReadCursor var2) |
abstract |
return |
toObjectreturn toObject(var0, 0, null) |
abstract |
return |
toObjectreturn toObject(var0, var1, null) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.protocol;
class="kw">import com.hypixel.hytale.protocol.io.ProtocolException;
class="kw">import com.hypixel.hytale.protocol.io.ReadCursor;
class="kw">import java.lang.foreign.MemorySegment;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public class PreventInventoryAccessUpdate class="kw">extends ComponentUpdate {
class="kw">public class="kw">static class="kw">final int NULLABLE_BIT_FIELD_SIZE = 0;
class="kw">public class="kw">static class="kw">final int FIXED_BLOCK_SIZE = 0;
class="kw">public class="kw">static class="kw">final int VARIABLE_FIELD_COUNT = 0;
class="kw">public class="kw">static class="kw">final int VARIABLE_BLOCK_START = 0;
class="kw">public class="kw">static class="kw">final int MAX_SIZE = 0;
class="kw">public PreventInventoryAccessUpdate() {
}
class="kw">public class="kw">static void requireBounds(MemorySegment var0, int var1) {
if (var1 < 0) {
throw ProtocolException.invalidOffset("PreventInventoryAccessUpdate", var1, (int)var0.byteSize());
}
long var2 = var1 + 0L;
if (var2 > var0.byteSize()) {
throw ProtocolException.bufferTooSmall("PreventInventoryAccessUpdate", (int)Math.min(var2, 2147483647L), (int)var0.byteSize());
}
}
class="kw">public class="kw">static PreventInventoryAccessUpdate toObject(MemorySegment var0) {
class="kw">return toObject(var0, 0, null);
}
class="kw">public class="kw">static PreventInventoryAccessUpdate toObject(MemorySegment var0, int var1) {
class="kw">return toObject(var0, var1, null);
}
class="kw">public class="kw">static PreventInventoryAccessUpdate toObject(MemorySegment var0, int var1, @Nullable ReadCursor var2) {
requireBounds(var0, var1);
PreventInventoryAccessUpdate var3 = new PreventInventoryAccessUpdate();
if (var2 != null) {
var2.position = var1 + 0;
}
class="kw">return var3;
}
@Override
class="kw">public int serialize(@Nonnull MemorySegment var1, int var2) {
class="kw">return 0;
}
@Override
class="kw">public int computeSize() {
class="kw">return 0;
}
class="kw">public PreventInventoryAccessUpdate clone() {
class="kw">return new PreventInventoryAccessUpdate();
}
@Override
class="kw">public boolean equals(Object var1) {
class="kw">return this == var1 ? true : var1 class="kw">instanceof PreventInventoryAccessUpdate var2;
}
@Override
class="kw">public int hashCode() {
class="kw">return 0;
}
}