Class JetBootsStateTracker
java.lang.Object
me.desht.pneumaticcraft.common.pneumatic_armor.JetBootsStateTracker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSynced state: set on the server and sync'd to clients (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic JetBootsStateTrackergetJetBootsState(net.minecraft.world.entity.player.Player player) static JetBootsStateTrackerstatic JetBootsStateTrackergetTracker(net.minecraft.world.entity.player.Player player) voidsetJetBootsState(UUID playerId, JetBootsStateTracker.JetBootsState state) Set jet boots state client-side; only called from PacketJetBootsStateSync packet handler.voidsetJetBootsState(net.minecraft.world.entity.player.Player player, boolean enabled, boolean active, boolean builderMode) Set jet boots state server-side.
-
Method Details
-
getClientTracker
-
getServerTracker
-
getTracker
-
setJetBootsState
public void setJetBootsState(net.minecraft.world.entity.player.Player player, boolean enabled, boolean active, boolean builderMode) Set jet boots state server-side. No-op if called client-side (client state is updated by the PacketJetBootsStateSync packet).- Parameters:
player- the playerenabled- jet boots switched on?active- jet boots firing?builderMode- in builder mode?
-
setJetBootsState
Set jet boots state client-side; only called from PacketJetBootsStateSync packet handler.- Parameters:
playerId- a player's UUID (not necessarily the client player; could be another player in this dimension)state- full jet boots state
-
getJetBootsState
public JetBootsStateTracker.JetBootsState getJetBootsState(net.minecraft.world.entity.player.Player player)
-