-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
699 changed files
with
15,933 additions
and
15,615 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
10 changes: 5 additions & 5 deletions
10
arclight-common/src/main/java/io/izzel/arclight/common/bridge/block/BlockBridge.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,11 +1,11 @@ | ||
package io.izzel.arclight.common.bridge.block; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.server.ServerWorld; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
public interface BlockBridge { | ||
|
||
int bridge$getExpDrop(BlockState blockState, ServerWorld world, BlockPos blockPos, ItemStack itemStack); | ||
int bridge$getExpDrop(BlockState blockState, ServerLevel world, BlockPos blockPos, ItemStack itemStack); | ||
} |
2 changes: 1 addition & 1 deletion
2
arclight-common/src/main/java/io/izzel/arclight/common/bridge/block/FireBlockBridge.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
8 changes: 4 additions & 4 deletions
8
arclight-common/src/main/java/io/izzel/arclight/common/bridge/block/NoteBlockBridge.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.block; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
public interface NoteBlockBridge { | ||
|
||
void bridge$play(World worldIn, BlockPos pos, BlockState state); | ||
void bridge$play(Level worldIn, BlockPos pos, BlockState state); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...ght-common/src/main/java/io/izzel/arclight/common/bridge/bukkit/CraftItemStackBridge.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
6 changes: 3 additions & 3 deletions
6
arclight-common/src/main/java/io/izzel/arclight/common/bridge/bukkit/CraftServerBridge.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,11 +1,11 @@ | ||
package io.izzel.arclight.common.bridge.bukkit; | ||
|
||
import net.minecraft.server.management.PlayerList; | ||
import net.minecraft.world.server.ServerWorld; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.server.players.PlayerList; | ||
|
||
public interface CraftServerBridge { | ||
|
||
void bridge$setPlayerList(PlayerList playerList); | ||
|
||
void bridge$removeWorld(ServerWorld world); | ||
void bridge$removeWorld(ServerLevel world); | ||
} |
6 changes: 3 additions & 3 deletions
6
arclight-common/src/main/java/io/izzel/arclight/common/bridge/bukkit/EntityTypeBridge.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
15 changes: 7 additions & 8 deletions
15
arclight-common/src/main/java/io/izzel/arclight/common/bridge/bukkit/ItemMetaBridge.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,19 +1,18 @@ | ||
package io.izzel.arclight.common.bridge.bukkit; | ||
|
||
import net.minecraft.nbt.CompoundNBT; | ||
import net.minecraft.nbt.INBT; | ||
|
||
import java.util.Map; | ||
import net.minecraft.nbt.CompoundTag; | ||
import net.minecraft.nbt.Tag; | ||
|
||
public interface ItemMetaBridge { | ||
|
||
CompoundNBT bridge$getForgeCaps(); | ||
CompoundTag bridge$getForgeCaps(); | ||
|
||
void bridge$setForgeCaps(CompoundNBT nbt); | ||
void bridge$setForgeCaps(CompoundTag nbt); | ||
|
||
void bridge$offerUnhandledTags(CompoundNBT nbt); | ||
void bridge$offerUnhandledTags(CompoundTag nbt); | ||
|
||
Map<String, INBT> bridge$getUnhandledTags(); | ||
Map<String, Tag> bridge$getUnhandledTags(); | ||
|
||
void bridge$setUnhandledTags(Map<String, INBT> tags); | ||
void bridge$setUnhandledTags(Map<String, Tag> tags); | ||
} |
6 changes: 3 additions & 3 deletions
6
arclight-common/src/main/java/io/izzel/arclight/common/bridge/bukkit/MaterialBridge.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
4 changes: 2 additions & 2 deletions
4
...ht-common/src/main/java/io/izzel/arclight/common/bridge/command/ICommandSourceBridge.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,9 +1,9 @@ | ||
package io.izzel.arclight.common.bridge.command; | ||
|
||
import net.minecraft.command.CommandSource; | ||
import net.minecraft.commands.CommandSourceStack; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public interface ICommandSourceBridge { | ||
|
||
CommandSender bridge$getBukkitSender(CommandSource wrapper); | ||
CommandSender bridge$getBukkitSender(CommandSourceStack wrapper); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...in/java/io/izzel/arclight/common/bridge/command/arguments/EntitySelectorParserBridge.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
8 changes: 4 additions & 4 deletions
8
arclight-common/src/main/java/io/izzel/arclight/common/bridge/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
16 changes: 8 additions & 8 deletions
16
arclight-common/src/main/java/io/izzel/arclight/common/bridge/entity/EntityTypeBridge.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,17 @@ | ||
package io.izzel.arclight.common.bridge.entity; | ||
|
||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.SpawnReason; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.nbt.CompoundNBT; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.text.ITextComponent; | ||
import net.minecraft.world.server.ServerWorld; | ||
import org.bukkit.event.entity.CreatureSpawnEvent; | ||
|
||
import javax.annotation.Nullable; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.nbt.CompoundTag; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.MobSpawnType; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
public interface EntityTypeBridge<T extends Entity> { | ||
|
||
T bridge$spawnCreature(ServerWorld worldIn, @Nullable CompoundNBT compound, @Nullable ITextComponent customName, @Nullable PlayerEntity playerIn, BlockPos pos, SpawnReason reason, boolean flag, boolean flag1, CreatureSpawnEvent.SpawnReason spawnReason); | ||
T bridge$spawnCreature(ServerLevel worldIn, @Nullable CompoundTag compound, @Nullable Component customName, @Nullable Player playerIn, BlockPos pos, MobSpawnType reason, boolean flag, boolean flag1, CreatureSpawnEvent.SpawnReason spawnReason); | ||
} |
2 changes: 1 addition & 1 deletion
2
...ght-common/src/main/java/io/izzel/arclight/common/bridge/entity/InternalEntityBridge.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
2 changes: 1 addition & 1 deletion
2
...on/src/main/java/io/izzel/arclight/common/bridge/entity/monster/EndermanEntityBridge.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
12 changes: 12 additions & 0 deletions
12
...mon/src/main/java/io/izzel/arclight/common/bridge/entity/monster/piglin/PiglinBridge.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.entity.monster.piglin; | ||
|
||
import net.minecraft.world.item.Item; | ||
|
||
import java.util.Set; | ||
|
||
public interface PiglinBridge { | ||
|
||
Set<Item> bridge$getAllowedBarterItems(); | ||
|
||
Set<Item> bridge$getInterestItems(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...mmon/src/main/java/io/izzel/arclight/common/bridge/entity/passive/AnimalEntityBridge.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
Oops, something went wrong.