Package net.createmod.catnip.platform
Class FabricHooksHelper
java.lang.Object
net.createmod.catnip.platform.FabricHooksHelper
- All Implemented Interfaces:
ModHooksHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackgetCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) booleanisPlayerFake(net.minecraft.server.level.ServerPlayer player) booleanplayerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState) Attempts to place a single Block as a Player, and should fire according events
-
Constructor Details
-
FabricHooksHelper
public FabricHooksHelper()
-
-
Method Details
-
playerPlaceSingleBlock
public boolean playerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState) Description copied from interface:ModHooksHelperAttempts to place a single Block as a Player, and should fire according events- Specified by:
playerPlaceSingleBlockin interfaceModHooksHelper- Returns:
- True if the event got canceled or the Block was not be placed, False otherwise
-
getCloneItemFromBlockstate
public net.minecraft.world.item.ItemStack getCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
getCloneItemFromBlockstatein interfaceModHooksHelper
-
isPlayerFake
public boolean isPlayerFake(net.minecraft.server.level.ServerPlayer player) - Specified by:
isPlayerFakein interfaceModHooksHelper
-