-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
102 changed files
with
1,190 additions
and
984 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
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
4 changes: 2 additions & 2 deletions
4
arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/EntityBridge.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
9 changes: 9 additions & 0 deletions
9
...common/src/main/java/io/izzel/arclight/common/bridge/core/item/crafting/RecipeBridge.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.izzel.arclight.common.bridge.core.item.crafting; | ||
|
||
import org.bukkit.NamespacedKey; | ||
import org.bukkit.inventory.Recipe; | ||
|
||
public interface RecipeBridge { | ||
|
||
Recipe bridge$toBukkitRecipe(NamespacedKey id); | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...src/main/java/io/izzel/arclight/common/bridge/core/item/crafting/RecipeManagerBridge.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,10 +1,10 @@ | ||
package io.izzel.arclight.common.bridge.core.item.crafting; | ||
|
||
import net.minecraft.world.item.crafting.Recipe; | ||
import net.minecraft.world.item.crafting.RecipeHolder; | ||
|
||
public interface RecipeManagerBridge { | ||
|
||
void bridge$addRecipe(Recipe<?> recipe); | ||
void bridge$addRecipe(RecipeHolder<?> recipe); | ||
|
||
void bridge$clearRecipes(); | ||
} |
12 changes: 12 additions & 0 deletions
12
...io/izzel/arclight/common/bridge/core/network/common/ServerCommonPacketListenerBridge.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.izzel.arclight.common.bridge.core.network.common; | ||
|
||
import net.minecraft.server.level.ServerPlayer; | ||
|
||
public interface ServerCommonPacketListenerBridge { | ||
|
||
boolean bridge$processedDisconnect(); | ||
|
||
boolean bridge$isDisconnected(); | ||
|
||
void bridge$setPlayer(ServerPlayer player); | ||
} |
9 changes: 2 additions & 7 deletions
9
...in/java/io/izzel/arclight/common/bridge/core/network/play/ServerPlayNetHandlerBridge.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,17 +1,12 @@ | ||
package io.izzel.arclight.common.bridge.core.network.play; | ||
|
||
import io.izzel.arclight.common.bridge.core.network.common.ServerCommonPacketListenerBridge; | ||
import org.bukkit.Location; | ||
import org.bukkit.event.player.PlayerTeleportEvent; | ||
|
||
public interface ServerPlayNetHandlerBridge { | ||
public interface ServerPlayNetHandlerBridge extends ServerCommonPacketListenerBridge { | ||
|
||
void bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause cause); | ||
|
||
void bridge$disconnect(String str); | ||
|
||
void bridge$teleport(Location dest); | ||
|
||
boolean bridge$processedDisconnect(); | ||
|
||
boolean bridge$isDisconnected(); | ||
} |
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
19 changes: 0 additions & 19 deletions
19
...ht-common/src/main/java/io/izzel/arclight/common/mixin/bukkit/CraftMagicNumbersMixin.java
This file was deleted.
Oops, something went wrong.
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
22 changes: 0 additions & 22 deletions
22
arclight-common/src/main/java/io/izzel/arclight/common/mixin/bukkit/CraftVillagerMixin.java
This file was deleted.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
...rc/main/java/io/izzel/arclight/common/mixin/core/advancements/AdvancementHolderMixin.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.izzel.arclight.common.mixin.core.advancements; | ||
|
||
import io.izzel.arclight.common.bridge.core.advancement.AdvancementBridge; | ||
import net.minecraft.advancements.AdvancementHolder; | ||
import org.bukkit.advancement.Advancement; | ||
import org.bukkit.craftbukkit.v.advancement.CraftAdvancement; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
@Mixin(AdvancementHolder.class) | ||
public class AdvancementHolderMixin implements AdvancementBridge { | ||
|
||
@Override | ||
public Advancement bridge$getBukkit() { | ||
return new CraftAdvancement((AdvancementHolder) (Object) this); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
...mmon/src/main/java/io/izzel/arclight/common/mixin/core/advancements/AdvancementMixin.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.