public class PlayerInteractionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ServerPlayerEntity |
player |
ServerWorld |
world |
Constructor and Description |
---|
PlayerInteractionManager(ServerWorld p_i50702_1_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
func_219441_a(PlayerEntity p_219441_1_,
World p_219441_2_,
ItemStack p_219441_3_,
Hand p_219441_4_,
BlockRayTraceResult p_219441_5_) |
void |
func_225415_a(BlockPos p_225415_1_,
CPlayerDiggingPacket.Action p_225415_2_) |
void |
func_225416_a(BlockPos p_225416_1_,
CPlayerDiggingPacket.Action p_225416_2_,
Direction p_225416_3_,
int p_225416_4_) |
GameType |
getGameType() |
void |
initializeGameType(GameType type) |
boolean |
isCreative() |
ActionResultType |
processRightClick(PlayerEntity player,
World worldIn,
ItemStack stack,
Hand hand) |
void |
setGameType(GameType type) |
void |
setWorld(ServerWorld serverWorld) |
boolean |
survivalOrAdventure() |
void |
tick() |
boolean |
tryHarvestBlock(BlockPos pos) |
public ServerWorld world
public ServerPlayerEntity player
public PlayerInteractionManager(ServerWorld p_i50702_1_)
public void setGameType(GameType type)
public GameType getGameType()
public boolean survivalOrAdventure()
public boolean isCreative()
public void initializeGameType(GameType type)
public void tick()
public void func_225416_a(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_)
public void func_225415_a(BlockPos p_225415_1_, CPlayerDiggingPacket.Action p_225415_2_)
public boolean tryHarvestBlock(BlockPos pos)
public ActionResultType processRightClick(PlayerEntity player, World worldIn, ItemStack stack, Hand hand)
public ActionResultType func_219441_a(PlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
public void setWorld(ServerWorld serverWorld)