-
Deprecated MethodsMethodDescriptionUse
IChunkProtectionAPI.onEntityInteraction(Entity, Entity, Entity, ItemStack, InteractionHand, boolean, boolean, boolean)
instead.Checks whether an entity interaction should be protected against.
Whenever possible, use the built-in entity interaction event provided by Forge instead of this method, unless it isn't specific enough, you're on Fabric, or the interacting entity has a full protection pass (
IChunkProtectionAPI.giveFullPass(UUID)
).
IChunkProtectionAPI.onBlockInteraction(Entity, InteractionHand, ItemStack, ServerLevel, BlockPos, Direction, boolean, boolean, boolean)
instead.Checks whether a specified block interaction should be protected against.
Whenever possible, use the built-in block interaction events provided by the mod loader (Fabric/Forge) instead of this method, unless they aren't specific enough, or the entity has a full protection pass (
IChunkProtectionAPI.giveFullPass(UUID)
).