Skip to content

Commit

Permalink
More clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Aug 27, 2023
1 parent 9b8035f commit 722a649
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 225 deletions.
60 changes: 0 additions & 60 deletions src/api/java/mods/railcraft/api/carts/Explosive.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ This work (the API) is licensed under the "MIT" License,

public final class RailcraftConstantsAPI {

public static final String MOD_ID = "railcraft";
public static final String API_PREFIX = "railcraft:api_";
public static final String CORE_ID = API_PREFIX + "core";
public static final String RAILCRAFT_PLAYER = "[" + MOD_ID + "]";
public static final String RAILCRAFT_PLAYER = "[railcraft]";
public static final String UNKNOWN_PLAYER = "[unknown]";

private RailcraftConstantsAPI() {}
}
2 changes: 0 additions & 2 deletions src/api/java/mods/railcraft/api/core/RailcraftFakePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ private RailcraftFakePlayer() {}
public static final GameProfile RAILCRAFT_USER_PROFILE =
new GameProfile(UUID.nameUUIDFromBytes(RailcraftConstantsAPI.RAILCRAFT_PLAYER.getBytes()),
RailcraftConstantsAPI.RAILCRAFT_PLAYER);
public static final GameProfile UNKNOWN_USER_PROFILE =
new GameProfile(null, RailcraftConstantsAPI.UNKNOWN_PLAYER);

public static ServerPlayer get(final ServerLevel world, final double x, final double y,
final double z) {
Expand Down
13 changes: 0 additions & 13 deletions src/api/java/mods/railcraft/api/helper/Helpers.java

This file was deleted.

41 changes: 0 additions & 41 deletions src/api/java/mods/railcraft/api/helper/StructureHelper.java

This file was deleted.

8 changes: 0 additions & 8 deletions src/api/java/mods/railcraft/api/helper/package-info.java

This file was deleted.

55 changes: 0 additions & 55 deletions src/api/java/mods/railcraft/api/item/InvToolsAPI.java

This file was deleted.

3 changes: 2 additions & 1 deletion src/api/java/mods/railcraft/api/item/TrackPlacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This work (the API) is licensed under the "MIT" License,

package mods.railcraft.api.item;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down Expand Up @@ -41,7 +42,7 @@ public interface TrackPlacer {
* your track, use your default value.
* @return true if successful
*/
default boolean placeTrack(ItemStack stack, @Nullable Player player, Level world,
default boolean placeTrack(ItemStack stack, @NotNull Player player, Level world,
BlockPos pos, @Nullable RailShape trackShape) {
return stack.getItem().useOn(
new UseOnContext(player, InteractionHand.MAIN_HAND, new BlockHitResult(Vec3.ZERO,
Expand Down
37 changes: 0 additions & 37 deletions src/api/java/mods/railcraft/api/track/RoutingTrack.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,8 @@ public class RailcraftCreativeModeTabs {
.icon(() -> new ItemStack(RailcraftItems.IRON_DETECTOR_TRACK.get()))
.displayItems((params, output) -> {
/* TODO:
- Dumping track
- Messenger track
- Delayed locking track
- Priming track
*/
output.accept(RailcraftItems.ABANDONED_ACTIVATOR_TRACK.get());
output.accept(RailcraftItems.ABANDONED_BOOSTER_TRACK.get());
Expand Down

0 comments on commit 722a649

Please sign in to comment.