-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move ClientProxy to forge layer
- Loading branch information
1 parent
e3c4298
commit 82658d8
Showing
9 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ge2/platform/common/util/ClientProxy.java → ...latform/forge/packet/s2c/ClientProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package com.refinedmods.refinedstorage2.platform.common.util; | ||
package com.refinedmods.refinedstorage2.platform.forge.packet.s2c; | ||
|
||
import java.util.Optional; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
public final class ClientProxy { | ||
final class ClientProxy { | ||
private ClientProxy() { | ||
} | ||
|
||
// This method exists to avoid classloading errors on LocalPlayer. | ||
public static Optional<Player> getPlayer() { | ||
static Optional<Player> getPlayer() { | ||
return Optional.ofNullable(Minecraft.getInstance().player); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...com/refinedmods/refinedstorage2/platform/forge/packet/s2c/ControllerEnergyInfoPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...main/java/com/refinedmods/refinedstorage2/platform/forge/packet/s2c/GridActivePacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
.../main/java/com/refinedmods/refinedstorage2/platform/forge/packet/s2c/GridClearPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...refinedmods/refinedstorage2/platform/forge/packet/s2c/WirelessTransmitterRangePacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters