public class PlayerInteractionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockPos |
delayedDestroyPos |
private BlockPos |
destroyPos |
private int |
durabilityRemainingOnBlock |
private static org.apache.logging.log4j.Logger |
field_225418_c |
private GameType |
gameType |
private int |
initialBlockDamage |
private int |
initialDamage |
private boolean |
isDestroyingBlock |
ServerPlayerEntity |
player |
private boolean |
receivedFinishDiggingPacket |
private int |
ticks |
ServerWorld |
world |
Constructor and Description |
---|
PlayerInteractionManager(ServerWorld p_i50702_1_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
func_219441_a(PlayerEntity playerIn,
World worldIn,
ItemStack stackIn,
Hand handIn,
BlockRayTraceResult blockRaytraceResultIn) |
void |
func_225416_a(BlockPos p_225416_1_,
CPlayerDiggingPacket.Action p_225416_2_,
Direction p_225416_3_,
int p_225416_4_) |
private float |
func_229859_a_(BlockState p_229859_1_,
BlockPos p_229859_2_,
int p_229859_3_) |
void |
func_229860_a_(BlockPos p_229860_1_,
CPlayerDiggingPacket.Action p_229860_2_,
java.lang.String p_229860_3_) |
GameType |
getGameType() |
void |
initializeGameType(GameType type) |
boolean |
isCreative() |
ActionResultType |
processRightClick(PlayerEntity player,
World worldIn,
ItemStack stack,
Hand hand) |
private boolean |
removeBlock(BlockPos p_180235_1_,
boolean canHarvest) |
void |
setGameType(GameType type) |
void |
setWorld(ServerWorld serverWorld) |
boolean |
survivalOrAdventure() |
void |
tick() |
boolean |
tryHarvestBlock(BlockPos pos) |
private static final org.apache.logging.log4j.Logger field_225418_c
public ServerWorld world
public ServerPlayerEntity player
private GameType gameType
private boolean isDestroyingBlock
private int initialDamage
private BlockPos destroyPos
private int ticks
private boolean receivedFinishDiggingPacket
private BlockPos delayedDestroyPos
private int initialBlockDamage
private int durabilityRemainingOnBlock
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()
private float func_229859_a_(BlockState p_229859_1_, BlockPos p_229859_2_, int p_229859_3_)
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_229860_a_(BlockPos p_229860_1_, CPlayerDiggingPacket.Action p_229860_2_, java.lang.String p_229860_3_)
public boolean tryHarvestBlock(BlockPos pos)
private boolean removeBlock(BlockPos p_180235_1_, boolean canHarvest)
public ActionResultType processRightClick(PlayerEntity player, World worldIn, ItemStack stack, Hand hand)
public ActionResultType func_219441_a(PlayerEntity playerIn, World worldIn, ItemStack stackIn, Hand handIn, BlockRayTraceResult blockRaytraceResultIn)
public void setWorld(ServerWorld serverWorld)