java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.MovingInteractionBehaviour
com.simibubi.create.content.contraptions.components.structureMovement.interaction.SimpleBlockMovingInteraction
Direct Known Subclasses:
DoorMovingInteraction, LeverMovingInteraction, TrapdoorMovingInteraction

public abstract class SimpleBlockMovingInteraction extends MovingInteractionBehaviour
  • Constructor Details

    • SimpleBlockMovingInteraction

      public SimpleBlockMovingInteraction()
  • Method Details

    • handlePlayerInteraction

      public boolean handlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand activeHand, net.minecraft.core.BlockPos localPos, AbstractContraptionEntity contraptionEntity)
      Overrides:
      handlePlayerInteraction in class MovingInteractionBehaviour
    • updateColliders

      protected boolean updateColliders()
    • playSound

      protected void playSound(net.minecraft.world.entity.player.Player player, net.minecraft.sounds.SoundEvent sound, float pitch)
    • handle

      protected abstract net.minecraft.world.level.block.state.BlockState handle(net.minecraft.world.entity.player.Player player, Contraption contraption, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState currentState)