Class MovedDefaultDispenseItemBehaviour

java.lang.Object
com.simibubi.create.content.contraptions.components.actors.dispenser.MovedDefaultDispenseItemBehaviour
All Implemented Interfaces:
IMovedDispenseItemBehaviour
Direct Known Subclasses:
MovedOptionalDispenseBehaviour, MovedProjectileDispenserBehaviour

public class MovedDefaultDispenseItemBehaviour extends Object implements IMovedDispenseItemBehaviour
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    dispense(net.minecraft.world.item.ItemStack itemStack, MovementContext context, net.minecraft.core.BlockPos pos)
     
    protected net.minecraft.world.item.ItemStack
    dispenseStack(net.minecraft.world.item.ItemStack itemStack, MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)
    Dispense the specified stack, play the dispense sound and spawn particles.
    static void
    doDispense(net.minecraft.world.level.Level p_82486_0_, net.minecraft.world.item.ItemStack p_82486_1_, int p_82486_2_, net.minecraft.world.phys.Vec3 facing, net.minecraft.core.BlockPos p_82486_4_, MovementContext context)
     
    protected net.minecraft.core.Direction
    getClosestFacingDirection(net.minecraft.world.phys.Vec3 exactFacing)
     
    protected net.minecraft.world.item.ItemStack
    placeItemInInventory(net.minecraft.world.item.ItemStack consumedFrom, net.minecraft.world.item.ItemStack output, MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)
     
    protected void
    playDispenseSound(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos)
    Play the dispense sound from the specified block.
    protected void
    spawnDispenseParticles(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
     
    protected void
    spawnDispenseParticles(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)
    Order clients to display dispense particles from the specified block and facing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MovedDefaultDispenseItemBehaviour

      public MovedDefaultDispenseItemBehaviour()
  • Method Details

    • doDispense

      public static void doDispense(net.minecraft.world.level.Level p_82486_0_, net.minecraft.world.item.ItemStack p_82486_1_, int p_82486_2_, net.minecraft.world.phys.Vec3 facing, net.minecraft.core.BlockPos p_82486_4_, MovementContext context)
    • dispense

      public net.minecraft.world.item.ItemStack dispense(net.minecraft.world.item.ItemStack itemStack, MovementContext context, net.minecraft.core.BlockPos pos)
      Specified by:
      dispense in interface IMovedDispenseItemBehaviour
    • dispenseStack

      protected net.minecraft.world.item.ItemStack dispenseStack(net.minecraft.world.item.ItemStack itemStack, MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)
      Dispense the specified stack, play the dispense sound and spawn particles.
    • playDispenseSound

      protected void playDispenseSound(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos)
      Play the dispense sound from the specified block.
    • spawnDispenseParticles

      protected void spawnDispenseParticles(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)
      Order clients to display dispense particles from the specified block and facing.
    • spawnDispenseParticles

      protected void spawnDispenseParticles(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
    • getClosestFacingDirection

      protected net.minecraft.core.Direction getClosestFacingDirection(net.minecraft.world.phys.Vec3 exactFacing)
    • placeItemInInventory

      protected net.minecraft.world.item.ItemStack placeItemInInventory(net.minecraft.world.item.ItemStack consumedFrom, net.minecraft.world.item.ItemStack output, MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.Vec3 facing)