Skip to content

Commit cedcf4f

Browse files
committed
IDE cleanups, warnings, more work on tunnels
1 parent 5b5ea2f commit cedcf4f

File tree

60 files changed

+729
-1072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+729
-1072
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,17 @@ dependencies {
172172
// runtimeOnly fg.deobf("mcjty.theoneprobe:TheOneProbe-1.16:${top_version}")
173173

174174
// Nicephore - Screenshots and Stuff
175-
runtimeOnly(fg.deobf("curse.maven:nicephore-401014:3542531"))
175+
runtimeOnly(fg.deobf("curse.maven:nicephore-401014:3574658"))
176176

177-
// Testing Mods - Trash Cans, Pipez
177+
// Testing Mods - Trash Cans, Pipez, Create, Refined Pipes, Pretty Pipes, Refined Storage
178178
runtimeOnly(fg.deobf("curse.maven:SuperMartijn642-454372:3544563"))
179179
runtimeOnly(fg.deobf("curse.maven:trashcans-394535:3544028"))
180-
runtimeOnly(fg.deobf("curse.maven:pipez-443900:3558815"))
180+
runtimeOnly(fg.deobf("curse.maven:pipez-443900:3569514"))
181181
runtimeOnly(fg.deobf("curse.maven:flywheel-486392:3556768"))
182182
runtimeOnly(fg.deobf("curse.maven:create-328085:3556823"))
183+
runtimeOnly(fg.deobf("curse.maven:refinedpipes-370696:3570151"))
184+
runtimeOnly(fg.deobf("curse.maven:prettypipes-376737:3573145"))
185+
runtimeOnly(fg.deobf("curse.maven:refinedstorage-243076:3569563"))
183186

184187
// Shut up Experimental Settings - so we don't have to deal with that CONSTANTLY
185188
runtimeOnly(fg.deobf("curse.maven:shutupexperimental-407174:3544525"))

src/api/java/dev/compactmods/machines/api/core/Messages.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ public abstract class Messages {
1010
public static final ResourceLocation HOW_DID_YOU_GET_HERE = new ResourceLocation(Constants.MOD_ID, "how_did_you_get_here");
1111
public static final ResourceLocation FIXBIOME_IN_BAD_DIMENSION = new ResourceLocation(Constants.MOD_ID, "fixbiome_bad_dim");
1212
public static final ResourceLocation UNKNOWN_TUNNEL = new ResourceLocation(Constants.MOD_ID, "unknown_tunnel_type");
13+
public static final ResourceLocation NO_TUNNEL_SIDE = new ResourceLocation(Constants.MOD_ID, "no_available_sides");
1314
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
package dev.compactmods.machines.api.location;
22

33
import java.util.Optional;
4+
import net.minecraft.core.Direction;
45
import net.minecraft.server.MinecraftServer;
56
import net.minecraft.core.BlockPos;
67
import net.minecraft.server.level.ServerLevel;
78
import net.minecraft.world.level.block.state.BlockState;
89

910
public interface IDimensionalPosition {
11+
IDimensionalPosition relative(Direction direction, float amount);
12+
1013
BlockPos getBlockPosition();
1114

12-
Optional<ServerLevel> getWorld(MinecraftServer server);
15+
Optional<ServerLevel> level(MinecraftServer server);
16+
17+
Optional<BlockState> state(MinecraftServer server);
1318

14-
Optional<BlockState> getBlockState(MinecraftServer server);
19+
IDimensionalPosition relative(Direction direction);
1520
}

src/api/java/dev/compactmods/machines/api/room/IMachineRoom.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.compactmods.machines.api.room;
22

33
import javax.annotation.Nonnull;
4-
import dev.compactmods.machines.api.tunnels.connection.IMachineTunnels;
4+
import dev.compactmods.machines.api.tunnels.connection.IRoomTunnels;
55
import net.minecraft.server.level.ServerLevel;
66
import net.minecraft.world.level.ChunkPos;
77

@@ -14,8 +14,8 @@ public interface IMachineRoom {
1414
ServerLevel getLevel();
1515

1616
@Nonnull
17-
IMachineTunnels getTunnels();
17+
IRoomTunnels getTunnels();
1818

1919
@Nonnull
20-
IRoomCapabilities getCapabilities();
20+
IRoomCapabilities getCapabilityManager();
2121
}

src/api/java/dev/compactmods/machines/api/room/IRoomCapabilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ public interface IRoomCapabilities {
1414
void removeCapability(TunnType tunnel, Capability<CapType> capability, Direction side);
1515

1616
<CapType, TunnType extends TunnelDefinition>
17-
LazyOptional<CapType> getCapability(Capability<CapType> capability, Direction side);
17+
LazyOptional<CapType> getCapability(TunnType tunnType, Capability<CapType> capability, Direction side);
1818
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package dev.compactmods.machines.api.tunnels;
2+
3+
import javax.annotation.Nonnull;
4+
import net.minecraft.core.BlockPos;
5+
import net.minecraft.core.Direction;
6+
import net.minecraft.server.level.ServerLevel;
7+
8+
public interface ITunnelPosition {
9+
10+
@Nonnull
11+
ServerLevel level();
12+
13+
@Nonnull
14+
BlockPos pos();
15+
16+
@Nonnull
17+
Direction side();
18+
}

src/api/java/dev/compactmods/machines/api/tunnels/TunnelDefinition.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package dev.compactmods.machines.api.tunnels;
22

33
import net.minecraftforge.registries.ForgeRegistryEntry;
4-
import net.minecraftforge.registries.IForgeRegistryEntry;
54

65
public abstract class TunnelDefinition extends ForgeRegistryEntry<TunnelDefinition>
7-
implements IForgeRegistryEntry<TunnelDefinition>
86
{
97
/**
108
* The color of a non-indicator (the same color as the wall)

src/api/java/dev/compactmods/machines/api/tunnels/capability/ITunnelCapability.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/api/java/dev/compactmods/machines/api/tunnels/capability/ITunnelCapabilityTeardown.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/api/java/dev/compactmods/machines/api/tunnels/connection/IMachineTunnels.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)