Skip to content

Commit

Permalink
style: added deprecated/clientOnly NativeGameController/NativeOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Reider745 committed Jan 4, 2025
1 parent 28401f9 commit 2ed453e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.zhekasmirnov.innercore.api;

import com.reider745.InnerCoreServer;
import com.reider745.api.ClientOnly;
import org.mozilla.javascript.annotations.JSStaticFunction;
import com.zhekasmirnov.apparatus.mcpe.NativeBlockSource;


@Deprecated
@ClientOnly
public class NativeGameController {
@JSStaticFunction// Can break a block that breaks instantly
public static boolean startDestroyBlock(int x, int y, int z, int side){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.reider745.api.ClientOnly;

@ClientOnly
@Deprecated
public class NativeOptions {
protected static long getOptionByName(String name){
InnerCoreServer.useClientMethod("NativeOptions.getOptionByName");
Expand Down Expand Up @@ -70,6 +71,8 @@ public static class OptionType {
public static final int INT_SLIDER = 6;
}

@Deprecated
@ClientOnly
public static class Option {
private final long ptr;

Expand Down

0 comments on commit 2ed453e

Please sign in to comment.