cleanup of scarpet dependencies
This commit is contained in:
1 parent
fd93785fec
commit
75d94b0570
71 files changed
+1623
-1014
No files matched your search
+3
-2
@@ -5,8 +5,9 @@ import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.inventory.DataSlot;
|
||||
import net.minecraft.world.item.crafting.Recipe;
|
||||
|
||||
public interface ScreenHandlerInterface {
|
||||
DataSlot getProperty(int index);
|
||||
public interface AbstractContainerMenuInterface
|
||||
{
|
||||
DataSlot getDataSlot(int index);
|
||||
boolean callButtonClickListener(int button, Player player);
|
||||
boolean callSelectRecipeListener(ServerPlayer player, Recipe<?> recipe, boolean craftAll);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package carpet.fakes;
|
||||
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.level.levelgen.structure.Structure;
|
||||
import net.minecraft.world.level.levelgen.structure.placement.StructurePlacement;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ChunkGeneratorInterface
|
||||
{
|
||||
void initStrongholds(final ServerLevel level);
|
||||
List<StructurePlacement> getPlacementsForFeatureCM(final ServerLevel level, final Structure structure);
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package carpet.fakes;
|
||||
import java.util.Map;
|
||||
import java.util.function.BooleanSupplier;
|
||||
|
||||
import carpet.script.CarpetScriptServer;
|
||||
import net.minecraft.core.RegistryAccess;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
//import net.minecraft.server.ServerResources;
|
||||
@@ -19,4 +20,7 @@ public interface MinecraftServerInterface
|
||||
void reloadAfterReload(RegistryAccess newRegs);
|
||||
|
||||
MinecraftServer.ReloadableResources getResourceManager();
|
||||
|
||||
void addScriptServer(CarpetScriptServer scriptServer);
|
||||
CarpetScriptServer getScriptServer();
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ package carpet.fakes;
|
||||
|
||||
import carpet.helpers.EntityPlayerActionPack;
|
||||
|
||||
public interface ServerPlayerEntityInterface
|
||||
public interface ServerPlayerInterface
|
||||
{
|
||||
EntityPlayerActionPack getActionPack();
|
||||
void invalidateEntityObjectReference();
|
||||
Reference in new issue
Block a user