public abstract class SimpleBlockMovingInteraction extends MovingInteractionBehaviour
| Constructor and Description |
|---|
SimpleBlockMovingInteraction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract net.minecraft.block.BlockState |
handle(net.minecraft.entity.player.PlayerEntity player,
Contraption contraption,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState currentState) |
boolean |
handlePlayerInteraction(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand activeHand,
net.minecraft.util.math.BlockPos localPos,
AbstractContraptionEntity contraptionEntity) |
protected void |
playSound(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.SoundEvent sound,
float pitch) |
protected boolean |
updateColliders() |
invalidate, setContraptionActorData, setContraptionBlockDatapublic boolean handlePlayerInteraction(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand activeHand,
net.minecraft.util.math.BlockPos localPos,
AbstractContraptionEntity contraptionEntity)
handlePlayerInteraction in class MovingInteractionBehaviourprotected boolean updateColliders()
protected void playSound(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.SoundEvent sound,
float pitch)
protected abstract net.minecraft.block.BlockState handle(net.minecraft.entity.player.PlayerEntity player,
Contraption contraption,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState currentState)