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 { getRootAsMonster(ByteBuffer _bb)12 public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); } getRootAsMonster(ByteBuffer _bb, Monster obj)13 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)14 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } __assign(int _i, ByteBuffer _bb)15 public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 16 17 startMonster(FlatBufferBuilder builder)18 public static void startMonster(FlatBufferBuilder builder) { builder.startObject(0); } endMonster(FlatBufferBuilder builder)19 public static int endMonster(FlatBufferBuilder builder) { 20 int o = builder.endObject(); 21 return o; 22 } 23 } 24 25