Interface IPlayerController


public interface IPlayerController
Since:
12/14/2018
Author:
Brady
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    clickBlock(net.minecraft.core.BlockPos loc, net.minecraft.core.Direction face)
     
    default double
     
    net.minecraft.world.level.GameType
     
    boolean
     
    boolean
    onPlayerDamageBlock(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
     
    net.minecraft.world.InteractionResult
    processRightClick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand)
     
    net.minecraft.world.InteractionResult
    processRightClickBlock(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult result)
     
    void
     
    void
    setHittingBlock(boolean hittingBlock)
     
    void
     
    void
    windowClick(int windowId, int slotId, int mouseButton, net.minecraft.world.inventory.ClickType type, net.minecraft.world.entity.player.Player player)
     
  • Method Details

    • syncHeldItem

      void syncHeldItem()
    • hasBrokenBlock

      boolean hasBrokenBlock()
    • onPlayerDamageBlock

      boolean onPlayerDamageBlock(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    • resetBlockRemoving

    • windowClick

      void windowClick(int windowId, int slotId, int mouseButton, net.minecraft.world.inventory.ClickType type, net.minecraft.world.entity.player.Player player)
    • getGameType

      net.minecraft.world.level.GameType getGameType()
    • processRightClickBlock

      net.minecraft.world.InteractionResult processRightClickBlock(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult result)
    • processRightClick

      net.minecraft.world.InteractionResult processRightClick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand)
    • clickBlock

      boolean clickBlock(net.minecraft.core.BlockPos loc, net.minecraft.core.Direction face)
    • setHittingBlock

      void setHittingBlock(boolean hittingBlock)
    • getBlockReachDistance

      default double getBlockReachDistance()