Package com.hbm_m.compat.create
Class HbmDoorInteractionBehaviour
java.lang.Object
com.simibubi.create.api.behaviour.interaction.MovingInteractionBehaviour
com.hbm_m.compat.create.HbmDoorInteractionBehaviour
public class HbmDoorInteractionBehaviour
extends com.simibubi.create.api.behaviour.interaction.MovingInteractionBehaviour
Правый клик по двери на собранном поезде. Не мутирует состояние сам — только
ставит
wantToggle флаг в MovementContext.data соответствующего
actor'а; HbmDoorMovementBehaviour.tick(com.simibubi.create.content.contraptions.behaviour.MovementContext) на сервере его обрабатывает
(единая точка правды для toggle/коллизии/звуков).-
Field Summary
Fields inherited from class com.simibubi.create.api.behaviour.interaction.MovingInteractionBehaviour
REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand activeHand, net.minecraft.core.BlockPos localPos, com.simibubi.create.content.contraptions.AbstractContraptionEntity contraptionEntity) Methods inherited from class com.simibubi.create.api.behaviour.interaction.MovingInteractionBehaviour
handleEntityCollision, interactionBehaviour, setContraptionActorData, setContraptionBlockData
-
Constructor Details
-
HbmDoorInteractionBehaviour
public HbmDoorInteractionBehaviour()
-
-
Method Details
-
handlePlayerInteraction
public boolean handlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand activeHand, net.minecraft.core.BlockPos localPos, com.simibubi.create.content.contraptions.AbstractContraptionEntity contraptionEntity) - Overrides:
handlePlayerInteractionin classcom.simibubi.create.api.behaviour.interaction.MovingInteractionBehaviour
-