类 DemoMode
java.lang.Object
net.minecraft.server.level.ServerPlayerGameMode
net.minecraft.server.level.DemoMode
-
字段概要
字段修饰符和类型字段说明static final int
private int
private boolean
private boolean
private int
static final int
从类继承的字段 net.minecraft.server.level.ServerPlayerGameMode
level, player
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
handleBlockBreakAction
(BlockPos p_214976_, ServerboundPlayerActionPacket.Action p_214977_, Direction p_214978_, int p_214979_, int p_214980_) private void
void
tick()
useItem
(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) useItemOn
(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) 从类继承的方法 net.minecraft.server.level.ServerPlayerGameMode
changeGameModeForPlayer, destroyAndAck, destroyBlock, getGameModeForPlayer, getPreviousGameModeForPlayer, isCreative, isSurvival, setGameModeForPlayer, setLevel
-
字段详细资料
-
DEMO_DAYS
public static final int DEMO_DAYS- 另请参阅:
-
TOTAL_PLAY_TICKS
public static final int TOTAL_PLAY_TICKS- 另请参阅:
-
displayedIntro
private boolean displayedIntro -
demoHasEnded
private boolean demoHasEnded -
demoEndedReminder
private int demoEndedReminder -
gameModeTicks
private int gameModeTicks
-
-
构造器详细资料
-
DemoMode
-
-
方法详细资料
-
tick
public void tick()- 覆盖:
tick
在类中ServerPlayerGameMode
-
outputDemoReminder
private void outputDemoReminder() -
handleBlockBreakAction
public void handleBlockBreakAction(BlockPos p_214976_, ServerboundPlayerActionPacket.Action p_214977_, Direction p_214978_, int p_214979_, int p_214980_) -
useItem
public InteractionResult useItem(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) - 覆盖:
useItem
在类中ServerPlayerGameMode
-
useItemOn
public InteractionResult useItemOn(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) - 覆盖:
useItemOn
在类中ServerPlayerGameMode
-