9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 04:46:37 +00:00

Merge remote-tracking branch 'upstream/dev' into dev

# Conflicts:
#	gradle.properties
This commit is contained in:
jhqwqmc
2025-09-19 01:05:32 +08:00
23 changed files with 3305 additions and 3068 deletions

View File

@@ -178,6 +178,11 @@ public abstract class BlockBehavior {
public void spawnAfterBreak(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
}
// Level level, BlockPos pos, BlockState state, Entity entity
public void stepOn(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
superMethod.call();
}
public ImmutableBlockState updateStateForPlacement(BlockPlaceContext context, ImmutableBlockState state) {
return state;
}

View File

@@ -22,6 +22,8 @@ public interface NetworkManager extends Manageable {
Channel getChannel(Player player);
int remapBlockState(int stateId, boolean enableMod);
Player[] onlineUsers();
default void sendPacket(@NotNull NetWorkUser player, Object packet) {

View File

@@ -0,0 +1,6 @@
package net.momirealms.craftengine.core.plugin.network;
public enum PacketFlow {
SERVERBOUND,
CLIENTBOUND;
}