25w19a
This commit is contained in:
1 parent
6bed85ef8c
commit
a1e4496cff
14 files changed
+38
-38
No files matched your search
@@ -604,7 +604,7 @@ public class CarpetEventServer
|
||||
return handler.call(() ->
|
||||
Arrays.asList(
|
||||
new EntityValue(player),
|
||||
new BlockValue(null, player.serverLevel(), blockpos),
|
||||
new BlockValue(null, player.level(), blockpos),
|
||||
StringValue.of(facing.getName())
|
||||
), player::createCommandSourceStack);
|
||||
}
|
||||
@@ -624,7 +624,7 @@ public class CarpetEventServer
|
||||
new EntityValue(player),
|
||||
ValueConversions.of(itemstack, player.level().registryAccess()),
|
||||
StringValue.of(enumhand == InteractionHand.MAIN_HAND ? "mainhand" : "offhand"),
|
||||
new BlockValue(null, player.serverLevel(), blockpos),
|
||||
new BlockValue(null, player.level(), blockpos),
|
||||
StringValue.of(enumfacing.getName()),
|
||||
ListValue.of(
|
||||
new NumericValue(vec3d.x),
|
||||
@@ -648,7 +648,7 @@ public class CarpetEventServer
|
||||
return Arrays.asList(
|
||||
new EntityValue(player),
|
||||
StringValue.of(enumhand == InteractionHand.MAIN_HAND ? "mainhand" : "offhand"),
|
||||
new BlockValue(null, player.serverLevel(), blockpos),
|
||||
new BlockValue(null, player.level(), blockpos),
|
||||
StringValue.of(enumfacing.getName()),
|
||||
ListValue.of(
|
||||
new NumericValue(vec3d.x),
|
||||
@@ -669,7 +669,7 @@ public class CarpetEventServer
|
||||
new EntityValue(player),
|
||||
ValueConversions.of(itemstack, player.level().registryAccess()),
|
||||
StringValue.of(enumhand == InteractionHand.MAIN_HAND ? "mainhand" : "offhand"),
|
||||
new BlockValue(null, player.serverLevel(), pos)
|
||||
new BlockValue(null, player.level(), pos)
|
||||
), player::createCommandSourceStack);
|
||||
}
|
||||
};
|
||||
@@ -682,7 +682,7 @@ public class CarpetEventServer
|
||||
new EntityValue(player),
|
||||
ValueConversions.of(itemstack, player.level().registryAccess()),
|
||||
StringValue.of(enumhand == InteractionHand.MAIN_HAND ? "mainhand" : "offhand"),
|
||||
new BlockValue(null, player.serverLevel(), pos)
|
||||
new BlockValue(null, player.level(), pos)
|
||||
), player::createCommandSourceStack);
|
||||
return false;
|
||||
}
|
||||
@@ -693,7 +693,7 @@ public class CarpetEventServer
|
||||
public boolean onBlockBroken(ServerPlayer player, BlockPos pos, BlockState previousBS)
|
||||
{
|
||||
return handler.call(
|
||||
() -> Arrays.asList(new EntityValue(player), new BlockValue(previousBS, player.serverLevel(), pos)),
|
||||
() -> Arrays.asList(new EntityValue(player), new BlockValue(previousBS, player.level(), pos)),
|
||||
player::createCommandSourceStack
|
||||
);
|
||||
}
|
||||
@@ -1336,7 +1336,7 @@ public class CarpetEventServer
|
||||
valArgs.add(EntityValue.of(player));
|
||||
for (Object o : args)
|
||||
{
|
||||
valArgs.add(ValueConversions.guess(player.serverLevel(), o));
|
||||
valArgs.add(ValueConversions.guess(player.level(), o));
|
||||
}
|
||||
return valArgs;
|
||||
}, player::createCommandSourceStack
|
||||
|
||||
Reference in new issue
Block a user