Skip to content

Commit

Permalink
Use org.galliumpowered for package
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSlimeDiamond committed Jul 3, 2023
1 parent 6486479 commit 2632368
Show file tree
Hide file tree
Showing 23 changed files with 107 additions and 86 deletions.
2 changes: 1 addition & 1 deletion GalliumLib
Submodule GalliumLib updated 77 files
+0 −8 src/main/java/net/zenoc/gallium/api/annotations/Args.java
+0 −6 src/main/java/net/zenoc/gallium/api/event/system/SystemEvent.java
+0 −13 src/main/java/net/zenoc/gallium/api/logging/LogManager.java
+0 −14 src/main/java/net/zenoc/gallium/internal/plugin/commands/PingCommand.java
+9 −9 src/main/java/org/galliumpowered/Gallium.java
+2 −2 src/main/java/org/galliumpowered/Server.java
+1 −1 src/main/java/org/galliumpowered/api/Gamemode.java
+8 −0 src/main/java/org/galliumpowered/api/annotations/Args.java
+1 −1 src/main/java/org/galliumpowered/api/annotations/Command.java
+1 −1 src/main/java/org/galliumpowered/api/annotations/EventListener.java
+1 −1 src/main/java/org/galliumpowered/api/annotations/Plugin.java
+2 −2 src/main/java/org/galliumpowered/api/annotations/PluginLifecycleListener.java
+1 −1 src/main/java/org/galliumpowered/api/chat/Colors.java
+1 −1 src/main/java/org/galliumpowered/api/config/Configuration.java
+2 −2 src/main/java/org/galliumpowered/api/config/DefaultConfiguration.java
+3 −3 src/main/java/org/galliumpowered/api/config/PluginConfiguration.java
+1 −1 src/main/java/org/galliumpowered/api/event/CancelableEvent.java
+2 −2 src/main/java/org/galliumpowered/api/event/Event.java
+6 −6 src/main/java/org/galliumpowered/api/event/player/PlayerBreakBlockEvent.java
+2 −2 src/main/java/org/galliumpowered/api/event/player/PlayerChatEvent.java
+3 −3 src/main/java/org/galliumpowered/api/event/player/PlayerDisconnectEvent.java
+3 −3 src/main/java/org/galliumpowered/api/event/player/PlayerEvent.java
+2 −2 src/main/java/org/galliumpowered/api/event/player/PlayerJoinEvent.java
+3 −3 src/main/java/org/galliumpowered/api/event/player/PlayerPlaceBlockEvent.java
+1 −1 src/main/java/org/galliumpowered/api/event/system/ServerShutdownEvent.java
+1 −1 src/main/java/org/galliumpowered/api/event/system/ServerStartEvent.java
+6 −0 src/main/java/org/galliumpowered/api/event/system/SystemEvent.java
+3 −3 src/main/java/org/galliumpowered/bridge/NMSBridge.java
+2 −2 src/main/java/org/galliumpowered/commandsys/CommandCaller.java
+1 −1 src/main/java/org/galliumpowered/commandsys/CommandCallerType.java
+2 −2 src/main/java/org/galliumpowered/commandsys/CommandContext.java
+4 −9 src/main/java/org/galliumpowered/commandsys/CommandManager.java
+3 −6 src/main/java/org/galliumpowered/commandsys/MCommand.java
+4 −8 src/main/java/org/galliumpowered/commandsys/PluginCommandManager.java
+1 −1 src/main/java/org/galliumpowered/commandsys/args/ArgumentType.java
+8 −8 src/main/java/org/galliumpowered/database/Database.java
+2 −2 src/main/java/org/galliumpowered/eventsys/EventDispatcher.java
+3 −3 src/main/java/org/galliumpowered/eventsys/EventManager.java
+2 −2 src/main/java/org/galliumpowered/eventsys/MListener.java
+1 −1 src/main/java/org/galliumpowered/exceptions/BadPluginException.java
+1 −1 src/main/java/org/galliumpowered/exceptions/CommandException.java
+1 −1 src/main/java/org/galliumpowered/exceptions/ConfigurationException.java
+1 −1 src/main/java/org/galliumpowered/exceptions/GalliumDatabaseException.java
+1 −1 src/main/java/org/galliumpowered/exceptions/NotYetImplementedException.java
+1 −1 src/main/java/org/galliumpowered/exceptions/PluginLoadFailException.java
+14 −15 src/main/java/org/galliumpowered/internal/plugin/GalliumPlugin.java
+5 −5 src/main/java/org/galliumpowered/internal/plugin/commands/GalliumCommand.java
+8 −8 src/main/java/org/galliumpowered/internal/plugin/commands/GamemodeCommand.java
+12 −0 src/main/java/org/galliumpowered/internal/plugin/commands/PingCommand.java
+7 −7 src/main/java/org/galliumpowered/internal/plugin/commands/permissions/GroupmodCommand.java
+8 −8 src/main/java/org/galliumpowered/internal/plugin/commands/permissions/PlayermodCommand.java
+7 −7 src/main/java/org/galliumpowered/internal/plugin/commands/plugin/PluginInfoCommand.java
+6 −6 src/main/java/org/galliumpowered/internal/plugin/commands/plugin/PluginListCommand.java
+5 −5 src/main/java/org/galliumpowered/internal/plugin/commands/testing/TestCommand.java
+5 −5 src/main/java/org/galliumpowered/internal/plugin/listeners/PlayerJoinListener.java
+3 −3 src/main/java/org/galliumpowered/permissionsys/Group.java
+2 −2 src/main/java/org/galliumpowered/permissionsys/GroupManager.java
+4 −4 src/main/java/org/galliumpowered/permissionsys/PermissionManager.java
+2 −2 src/main/java/org/galliumpowered/permissionsys/PermissionOwner.java
+2 −2 src/main/java/org/galliumpowered/plugin/DefaultPluginMeta.java
+4 −4 src/main/java/org/galliumpowered/plugin/PluginContainer.java
+1 −1 src/main/java/org/galliumpowered/plugin/PluginLifecycleState.java
+8 −8 src/main/java/org/galliumpowered/plugin/PluginManager.java
+6 −7 src/main/java/org/galliumpowered/plugin/inject/modules/InjectPluginModule.java
+3 −3 src/main/java/org/galliumpowered/plugin/inject/providers/PluginCommandManagerProvider.java
+2 −2 src/main/java/org/galliumpowered/plugin/inject/providers/PluginContainerProvider.java
+2 −2 src/main/java/org/galliumpowered/plugin/inject/providers/PluginLoggerProvider.java
+1 −1 src/main/java/org/galliumpowered/plugin/loader/PluginClassLoader.java
+9 −12 src/main/java/org/galliumpowered/plugin/loader/PluginLoader.java
+1 −1 src/main/java/org/galliumpowered/plugin/metadata/PluginMeta.java
+5 −5 src/main/java/org/galliumpowered/plugin/metadata/PluginMetaLoader.java
+1 −1 src/main/java/org/galliumpowered/util/NumberUtils.java
+1 −1 src/main/java/org/galliumpowered/world/World.java
+1 −1 src/main/java/org/galliumpowered/world/block/Block.java
+21 −0 src/main/java/org/galliumpowered/world/block/WorldBlock.java
+1 −1 src/main/java/org/galliumpowered/world/entity/Entity.java
+6 −6 src/main/java/org/galliumpowered/world/entity/Player.java
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

group = "net.zenoc"
version = "1.17.1-1.1.0-beta.3"
var mainClass = "net.zenoc.gallium.Main"
var mainClass = "org.galliumpowered.Main"

repositories {
mavenCentral()
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/net/minecraft/commands/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@

import net.minecraft.ChatFormatting;
import net.minecraft.SharedConstants;
import net.minecraft.Util;
import net.minecraft.commands.synchronization.ArgumentTypes;
import net.minecraft.commands.synchronization.SuggestionProviders;
import net.minecraft.gametest.framework.TestCommand;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.ComponentUtils;
import net.minecraft.network.chat.HoverEvent;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.network.chat.TranslatableComponent;
Expand All @@ -54,7 +52,6 @@
import net.minecraft.server.commands.FillCommand;
import net.minecraft.server.commands.ForceLoadCommand;
import net.minecraft.server.commands.FunctionCommand;
import net.minecraft.server.commands.GameModeCommand;
import net.minecraft.server.commands.GameRuleCommand;
import net.minecraft.server.commands.GiveCommand;
import net.minecraft.server.commands.HelpCommand;
Expand Down Expand Up @@ -104,13 +101,10 @@
import net.minecraft.server.commands.WorldBorderCommand;
import net.minecraft.server.commands.data.DataCommands;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.player.Player;
import net.zenoc.gallium.api.chat.Colors;
import net.zenoc.gallium.util.TextTransformer;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.galliumpowered.api.chat.Colors;
import org.galliumpowered.util.TextTransformer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jetbrains.annotations.NotNull;

public class Commands {
private static final Logger LOGGER = LogManager.getLogger();
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/minecraft/server/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import net.minecraft.DefaultUncaughtExceptionHandler;
import net.minecraft.SharedConstants;
import net.minecraft.Util;
import net.minecraft.advancements.critereon.PlayerInteractTrigger;
import net.minecraft.commands.Commands.CommandSelection;
import net.minecraft.core.RegistryAccess;
import net.minecraft.nbt.NbtOps;
Expand Down Expand Up @@ -59,7 +58,7 @@
import net.minecraft.world.level.storage.LevelSummary;
import net.minecraft.world.level.storage.PrimaryLevelData;
import net.minecraft.world.level.storage.WorldData;
import net.zenoc.gallium.Gallium;
import org.galliumpowered.Gallium;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/minecraft/server/MinecraftServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@
import net.minecraft.world.level.storage.loot.PredicateManager;
import net.minecraft.world.phys.Vec2;
import net.minecraft.world.phys.Vec3;
import net.zenoc.gallium.Gallium;
import net.zenoc.gallium.Mod;
import net.zenoc.gallium.api.event.system.ServerShutdownEvent;
import org.galliumpowered.Gallium;
import org.galliumpowered.Mod;
import org.galliumpowered.api.event.system.ServerShutdownEvent;
import org.apache.commons.lang3.Validate;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
import net.minecraft.world.level.block.entity.SkullBlockEntity;
import net.minecraft.world.level.storage.LevelStorageSource;
import net.minecraft.world.level.storage.WorldData;
import net.zenoc.gallium.Gallium;
import net.zenoc.gallium.api.event.system.ServerStartEvent;
import org.galliumpowered.Gallium;
import org.galliumpowered.api.event.system.ServerStartEvent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.BlockHitResult;
import net.zenoc.gallium.api.event.player.PlayerBreakBlockEvent;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import net.zenoc.gallium.world.block.BlockImpl;
import org.galliumpowered.api.event.player.PlayerBreakBlockEvent;
import org.galliumpowered.api.world.entity.player.PlayerImpl;
import org.galliumpowered.world.block.WorldBlockImpl;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down Expand Up @@ -245,7 +245,7 @@ public boolean destroyBlock(BlockPos blockPos) {
boolean bl = this.level.removeBlock(blockPos, false);
if (bl) {
// Gallium start: block break event
PlayerBreakBlockEvent event = (PlayerBreakBlockEvent) new PlayerBreakBlockEvent(new PlayerImpl(player), new BlockImpl(block)).call();
PlayerBreakBlockEvent event = (PlayerBreakBlockEvent) new PlayerBreakBlockEvent(new PlayerImpl(player), new WorldBlockImpl(block, blockPos)).call();
if (!event.isCancelled) {
block.destroy(this.level, blockPos, blockState);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
import net.minecraft.world.level.GameType;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.CommandBlock;
import net.minecraft.world.level.block.entity.BlockEntity;
Expand All @@ -163,11 +162,9 @@
import net.minecraft.world.phys.shapes.BooleanOp;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.VoxelShape;
import net.zenoc.gallium.api.event.player.PlayerBreakBlockEvent;
import net.zenoc.gallium.api.event.player.PlayerChatEvent;
import net.zenoc.gallium.api.event.player.PlayerDisconnectEvent;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import net.zenoc.gallium.world.block.BlockImpl;
import org.galliumpowered.api.event.player.PlayerChatEvent;
import org.galliumpowered.api.event.player.PlayerDisconnectEvent;
import org.galliumpowered.api.world.entity.player.PlayerImpl;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/net/minecraft/server/players/PlayerList.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
import net.minecraft.world.scores.Objective;
import net.minecraft.world.scores.PlayerTeam;
import net.minecraft.world.scores.Team;
import net.zenoc.gallium.Gallium;
import net.zenoc.gallium.api.event.player.PlayerJoinEvent;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import org.galliumpowered.Gallium;
import org.galliumpowered.api.event.player.PlayerJoinEvent;
import org.galliumpowered.api.world.entity.player.PlayerImpl;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down Expand Up @@ -205,7 +205,7 @@ public void placeNewPlayer(Connection connection, ServerPlayer serverPlayer) {
}

// Gallium start: player join event
net.zenoc.gallium.world.entity.Player player = new PlayerImpl(serverPlayer);
org.galliumpowered.world.entity.Player player = new PlayerImpl(serverPlayer);
PlayerJoinEvent event = (PlayerJoinEvent) new PlayerJoinEvent(player).call();
if (event.isCancelled()) {
player.disconnect();
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/minecraft/world/item/BlockItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
import net.minecraft.world.level.block.state.properties.Property;
import net.minecraft.world.level.gameevent.GameEvent;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.zenoc.gallium.api.event.player.PlayerPlaceBlockEvent;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import net.zenoc.gallium.world.block.BlockImpl;
import org.galliumpowered.api.event.player.PlayerPlaceBlockEvent;
import org.galliumpowered.api.world.entity.player.PlayerImpl;
import org.galliumpowered.world.block.BlockImpl;

public class BlockItem extends Item {
public static final String BLOCK_ENTITY_TAG = "BlockEntityTag";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zenoc.gallium;
package org.galliumpowered;

import java.io.File;
import java.io.FileReader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zenoc.gallium;
package org.galliumpowered;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package net.zenoc.gallium;
package org.galliumpowered;

import net.minecraft.server.MinecraftServer;
import net.zenoc.gallium.bridge.BridgeImpl;
import net.zenoc.gallium.commandsys.CommandManager;
import net.zenoc.gallium.database.Database;
import net.zenoc.gallium.event.EventDispatcherImpl;
import net.zenoc.gallium.eventsys.EventManager;
import net.zenoc.gallium.exceptions.GalliumDatabaseException;
import net.zenoc.gallium.permissionsys.GroupManager;
import net.zenoc.gallium.permissionsys.PermissionManager;
import net.zenoc.gallium.plugin.PluginManager;
import org.galliumpowered.bridge.BridgeImpl;
import org.galliumpowered.commandsys.CommandManager;
import org.galliumpowered.database.Database;
import org.galliumpowered.event.EventDispatcherImpl;
import org.galliumpowered.eventsys.EventManager;
import org.galliumpowered.exceptions.GalliumDatabaseException;
import org.galliumpowered.permissionsys.GroupManager;
import org.galliumpowered.permissionsys.PermissionManager;
import org.galliumpowered.plugin.PluginManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.zenoc.gallium;
package org.galliumpowered;

import net.zenoc.gallium.world.entity.Player;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import org.galliumpowered.world.entity.Player;
import org.galliumpowered.api.world.entity.player.PlayerImpl;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package net.zenoc.gallium.api.world.entity.player;
package org.galliumpowered.api.world.entity.player;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.HoverEvent;
import net.minecraft.Util;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.level.GameType;
import net.zenoc.gallium.api.Gamemode;
import net.zenoc.gallium.world.entity.Player;
import net.zenoc.gallium.util.TextTransformer;
import org.galliumpowered.api.Gamemode;
import org.galliumpowered.world.entity.Player;
import org.galliumpowered.util.TextTransformer;

import javax.annotation.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zenoc.gallium.bridge;
package org.galliumpowered.bridge;

import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
Expand All @@ -7,19 +7,19 @@
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.suggestion.Suggestions;
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.server.level.ServerPlayer;
import net.zenoc.gallium.Gallium;
import net.zenoc.gallium.Mod;
import net.zenoc.gallium.api.annotations.Args;
import net.zenoc.gallium.commandsys.args.ArgsTypeTranslator;
import net.zenoc.gallium.world.entity.Player;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import net.zenoc.gallium.commandsys.*;
import net.zenoc.gallium.exceptions.CommandException;
import org.galliumpowered.Gallium;
import org.galliumpowered.Mod;
import org.galliumpowered.api.annotations.Args;
import org.galliumpowered.commandsys.args.ArgsTypeTranslator;
import org.galliumpowered.world.entity.Player;
import org.galliumpowered.api.world.entity.player.PlayerImpl;
import org.galliumpowered.exceptions.CommandException;
import org.galliumpowered.commandsys.CommandCaller;
import org.galliumpowered.commandsys.CommandCallerImpl;
import org.galliumpowered.commandsys.CommandContextImpl;
import org.galliumpowered.commandsys.MCommand;

import java.lang.reflect.Method;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.zenoc.gallium.commandsys;
package org.galliumpowered.commandsys;

import net.minecraft.server.level.ServerPlayer;
import net.zenoc.gallium.world.entity.Player;
import net.zenoc.gallium.api.world.entity.player.PlayerImpl;
import org.galliumpowered.world.entity.Player;
import org.galliumpowered.api.world.entity.player.PlayerImpl;

import javax.annotation.Nullable;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.zenoc.gallium.commandsys;
package org.galliumpowered.commandsys;

import net.zenoc.gallium.world.entity.Player;
import org.galliumpowered.world.entity.Player;
import org.checkerframework.checker.nullness.qual.NonNull;

import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zenoc.gallium.commandsys.args;
package org.galliumpowered.commandsys.args;

import com.mojang.brigadier.arguments.StringArgumentType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package net.zenoc.gallium.event;
package org.galliumpowered.event;

import net.zenoc.gallium.Gallium;
import net.zenoc.gallium.api.event.Event;
import net.zenoc.gallium.eventsys.EventDispatcher;
import net.zenoc.gallium.eventsys.EventManager;
import net.zenoc.gallium.eventsys.MListener;
import org.galliumpowered.Gallium;
import org.galliumpowered.api.event.Event;
import org.galliumpowered.eventsys.EventDispatcher;
import org.galliumpowered.eventsys.EventManager;
import org.galliumpowered.eventsys.MListener;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.EventListener;
import java.util.Iterator;

public class EventDispatcherImpl implements EventDispatcher {
private static final Logger log = LogManager.getLogger();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zenoc.gallium.util;
package org.galliumpowered.util;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
package net.zenoc.gallium.world.block;

import net.minecraft.core.Registry;
import net.minecraft.world.level.block.Blocks;
package org.galliumpowered.world.block;

public class BlockImpl implements Block {
private net.minecraft.world.level.block.Block nmsBlock;
Expand Down
38 changes: 38 additions & 0 deletions src/main/java/org/galliumpowered/world/block/WorldBlockImpl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package org.galliumpowered.world.block;

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.block.Block;

public class WorldBlockImpl implements WorldBlock {
private Block nmsBlock;
private BlockPos pos;

public WorldBlockImpl(Block nmsBlock, BlockPos pos) {
this.nmsBlock = nmsBlock;
this.pos = pos;
}
@Override
public String getId() {
return nmsBlock.getDescriptionId();
}

@Override
public String getName() {
return "FIXME";
}

@Override
public int getX() {
return pos.getX();
}

@Override
public int getY() {
return pos.getY();
}

@Override
public int getZ() {
return pos.getZ();
}
}

0 comments on commit 2632368

Please sign in to comment.