Search in sources :

Example 6 with BeltProcessingBehaviour

use of com.simibubi.create.foundation.tileEntity.behaviour.belt.BeltProcessingBehaviour in project Create by Creators-of-Create.

the class MechanicalPressTileEntity method addBehaviours.

@Override
public void addBehaviours(List<TileEntityBehaviour> behaviours) {
    super.addBehaviours(behaviours);
    processingBehaviour = new BeltProcessingBehaviour(this).whenItemEnters((s, i) -> BeltPressingCallbacks.onItemReceived(s, i, this)).whileItemHeld((s, i) -> BeltPressingCallbacks.whenItemHeld(s, i, this));
    behaviours.add(processingBehaviour);
}
Also used : ResourceLocation(net.minecraft.resources.ResourceLocation) VecHelper(com.simibubi.create.foundation.utility.VecHelper) Tag(net.minecraft.nbt.Tag) AABB(net.minecraft.world.phys.AABB) InWorldProcessing(com.simibubi.create.content.contraptions.processing.InWorldProcessing) BasinTileEntity(com.simibubi.create.content.contraptions.processing.BasinTileEntity) BlockState(net.minecraft.world.level.block.state.BlockState) ITriggerable(com.simibubi.create.foundation.advancement.ITriggerable) ItemParticleOption(net.minecraft.core.particles.ItemParticleOption) ArrayList(java.util.ArrayList) Ingredient(net.minecraft.world.item.crafting.Ingredient) Container(net.minecraft.world.Container) ItemHandlerHelper(net.minecraftforge.items.ItemHandlerHelper) MechanicalCraftingRecipe(com.simibubi.create.content.contraptions.components.crafter.MechanicalCraftingRecipe) SmartInventory(com.simibubi.create.foundation.item.SmartInventory) Create(com.simibubi.create.Create) AllRecipeTypes(com.simibubi.create.AllRecipeTypes) AllConfigs(com.simibubi.create.foundation.config.AllConfigs) NonNullList(net.minecraft.core.NonNullList) SequencedAssemblyRecipe(com.simibubi.create.content.contraptions.itemAssembly.SequencedAssemblyRecipe) AllBlocks(com.simibubi.create.AllBlocks) BasinOperatingTileEntity(com.simibubi.create.content.contraptions.processing.BasinOperatingTileEntity) TransportedItemStackHandlerBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.belt.TransportedItemStackHandlerBehaviour) ImmutableSet(com.google.common.collect.ImmutableSet) ItemHelper(com.simibubi.create.foundation.item.ItemHelper) TileEntityBehaviour(com.simibubi.create.foundation.tileEntity.TileEntityBehaviour) CraftingRecipe(net.minecraft.world.item.crafting.CraftingRecipe) RecipeSerializer(net.minecraft.world.item.crafting.RecipeSerializer) AllTriggers(com.simibubi.create.foundation.advancement.AllTriggers) Set(java.util.Set) BeltProcessingBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.belt.BeltProcessingBehaviour) SoundType(net.minecraft.world.level.block.SoundType) List(java.util.List) CompoundTag(net.minecraft.nbt.CompoundTag) Entity(net.minecraft.world.entity.Entity) BlockPos(net.minecraft.core.BlockPos) ItemEntity(net.minecraft.world.entity.item.ItemEntity) Recipe(net.minecraft.world.item.crafting.Recipe) BlockEntityType(net.minecraft.world.level.block.entity.BlockEntityType) Vec3(net.minecraft.world.phys.Vec3) ItemStackHandler(net.minecraftforge.items.ItemStackHandler) Optional(java.util.Optional) NBTHelper(com.simibubi.create.foundation.utility.NBTHelper) ItemStack(net.minecraft.world.item.ItemStack) RecipeWrapper(net.minecraftforge.items.wrapper.RecipeWrapper) ParticleTypes(net.minecraft.core.particles.ParticleTypes) Mth(net.minecraft.util.Mth) AllSoundEvents(com.simibubi.create.AllSoundEvents) BeltProcessingBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.belt.BeltProcessingBehaviour)

Aggregations

BeltProcessingBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.belt.BeltProcessingBehaviour)6 TransportedItemStackHandlerBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.belt.TransportedItemStackHandlerBehaviour)4 BlockPos (net.minecraft.core.BlockPos)4 ItemStack (net.minecraft.world.item.ItemStack)4 TileEntityBehaviour (com.simibubi.create.foundation.tileEntity.TileEntityBehaviour)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 BlockEntityType (net.minecraft.world.level.block.entity.BlockEntityType)3 BlockState (net.minecraft.world.level.block.state.BlockState)3 AABB (net.minecraft.world.phys.AABB)3 Vec3 (net.minecraft.world.phys.Vec3)3 AllBlocks (com.simibubi.create.AllBlocks)2 AllRecipeTypes (com.simibubi.create.AllRecipeTypes)2 SequencedAssemblyRecipe (com.simibubi.create.content.contraptions.itemAssembly.SequencedAssemblyRecipe)2 TransportedItemStack (com.simibubi.create.content.contraptions.relays.belt.transport.TransportedItemStack)2 AllTriggers (com.simibubi.create.foundation.advancement.AllTriggers)2 ProcessingResult (com.simibubi.create.foundation.tileEntity.behaviour.belt.BeltProcessingBehaviour.ProcessingResult)2 NBTHelper (com.simibubi.create.foundation.utility.NBTHelper)2 VecHelper (com.simibubi.create.foundation.utility.VecHelper)2 CompoundTag (net.minecraft.nbt.CompoundTag)2