Class SimpleBlockMovingInteraction
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.minecraft.world.level.block.state.BlockStatehandle(net.minecraft.world.entity.player.Player player, Contraption contraption, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState currentState) booleanhandlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand activeHand, net.minecraft.core.BlockPos localPos, AbstractContraptionEntity contraptionEntity) protected voidplaySound(net.minecraft.world.entity.player.Player player, net.minecraft.sounds.SoundEvent sound, float pitch) protected booleanMethods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.MovingInteractionBehaviour
invalidate, setContraptionActorData, setContraptionBlockData
-
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:
handlePlayerInteractionin classMovingInteractionBehaviour
-
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)
-