1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package MyGame.Example2; 4 5 import java.nio.*; 6 import java.lang.*; 7 import java.util.*; 8 import com.google.flatbuffers.*; 9 10 @SuppressWarnings("unused") 11 public final class Monster extends Table { ValidateVersion()12 public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } getRootAsMonster(ByteBuffer _bb)13 public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); } getRootAsMonster(ByteBuffer _bb, Monster obj)14 public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } __init(int _i, ByteBuffer _bb)15 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } __assign(int _i, ByteBuffer _bb)16 public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 18 startMonster(FlatBufferBuilder builder)19 public static void startMonster(FlatBufferBuilder builder) { builder.startTable(0); } endMonster(FlatBufferBuilder builder)20 public static int endMonster(FlatBufferBuilder builder) { 21 int o = builder.endTable(); 22 return o; 23 } 24 25 public static final class Vector extends BaseVector { __assign(int _vector, int _element_size, ByteBuffer _bb)26 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } 27 get(int j)28 public Monster get(int j) { return get(new Monster(), j); } get(Monster obj, int j)29 public Monster get(Monster obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } 30 } 31 } 32 33