@Override public Optional<UUID> getNotifier(int x, int y, int z) { BlockPos pos = new BlockPos(x, y, z); IMixinChunk spongeChunk = (IMixinChunk) getChunkFromBlockCoords(pos); Optional<User> user = spongeChunk.getBlockNotifier(pos); if (user.isPresent()) { return Optional.of(user.get().getUniqueId()); } else { return Optional.empty(); } }
@Override public void setNotifier(int x, int y, int z, @Nullable UUID uuid) { BlockPos pos = new BlockPos(x, y, z); IMixinChunk spongeChunk = (IMixinChunk) getChunkFromBlockCoords(pos); spongeChunk.setBlockNotifier(pos, uuid); }