public class PlayerInteractionManager
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
ServerPlayerEntity |
player |
ServerWorld |
world |
コンストラクタと説明 |
---|
PlayerInteractionManager(ServerWorld p_i50702_1_) |
修飾子とタイプ | メソッドと説明 |
---|---|
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_) |
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)
if the gameType is currently NOT_SET then change it to par1
|
boolean |
isCreative()
Get if we are in creative game mode.
|
ActionResultType |
processRightClick(PlayerEntity player,
World worldIn,
ItemStack stack,
Hand hand) |
void |
setGameType(GameType type) |
void |
setWorld(ServerWorld serverWorld)
Sets the world instance.
|
boolean |
survivalOrAdventure() |
void |
tick() |
boolean |
tryHarvestBlock(BlockPos pos)
Attempts to harvest a block
|
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_229860_a_(BlockPos p_229860_1_, CPlayerDiggingPacket.Action p_229860_2_, java.lang.String p_229860_3_)
public boolean tryHarvestBlock(BlockPos pos)
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)