Package codechicken.translocators.part
Class ItemTranslocatorPart
java.lang.Object
codechicken.multipart.api.part.BaseMultipart
codechicken.translocators.part.TranslocatorPart
codechicken.translocators.part.ItemTranslocatorPart
- All Implemented Interfaces:
codechicken.multipart.api.part.FacePart,codechicken.multipart.api.part.MultiPart,codechicken.multipart.api.part.NormalOcclusionPart,codechicken.multipart.api.part.redstone.RedstonePart,codechicken.multipart.api.part.SlottedPart,codechicken.multipart.api.part.TickablePart
public class ItemTranslocatorPart
extends TranslocatorPart
implements codechicken.multipart.api.part.redstone.RedstonePart
Created by covers1624 on 10/11/2017.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleannet.minecraft.world.item.ItemStack[]booleannet.minecraft.world.item.ItemStackbooleanFields inherited from class codechicken.translocators.part.TranslocatorPart
a_eject, a_insertpos, b_eject, b_insertpos, base, base_parts, basePartShapes, basePartsJoined, baseShape, boxes, boxShapes, fast, HIT_BASE, HIT_INSERT, invert_redstone, PLACEMENT_SOUND, redstone, side -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultactivate(net.minecraft.world.entity.player.Player player, codechicken.multipart.util.PartRayTraceResult hit, net.minecraft.world.item.ItemStack held, net.minecraft.world.InteractionHand hand) booleancanConnectRedstone(int side) booleancanStay()intnet.minecraft.world.item.ItemStackgetItem()intgetTType()codechicken.multipart.api.MultipartType<?>getType()voidload(net.minecraft.nbt.CompoundTag tag) voidopenGui(net.minecraft.world.entity.player.Player player) Called to open any gui that the translocator wishes to display.protected voidreadFlags(int flags) voidreadIncUpdate(codechicken.lib.data.MCDataInput packet) Called when our Incremental update packet arrives.voidsave(net.minecraft.nbt.CompoundTag tag) voidsetPowering(boolean b) voidStrips all modifiers from the Translocator and drops the items in world.intstrongPowerLevel(int side) voidtick()intweakPowerLevel(int side) protected intMethods inherited from class codechicken.translocators.part.TranslocatorPart
canConnect, canEject, canInsert, drop, dropIfCantStay, dropItem, getCloneStack, getCollisionShape, getDrops, getInsertBounds, getInteractionShape, getOcclusionShape, getOther, getPlacementSound, getRenderBounds, getShape, getSlotMask, markUpdate, onNeighborBlockChanged, onPartChanged, readDesc, readUpdate, redstoneConductionMap, sendFlagsUpdate, sendIncUpdate, setupPlacement, writeDescMethods inherited from class codechicken.multipart.api.part.BaseMultipart
bind, hasTile, tileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.multipart.api.part.MultiPart
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, capCache, click, getBlockSupportShape, getCloneStack, getCollisionShape, getDrops, getExplosionResistance, getInteractionShape, getLightEmission, getPlacementSound, getRenderBounds, getRenderOcclusionShape, getShape, getStrength, getVisualShape, harvest, hasLevel, hasTile, invalidateConvertedTile, level, onAdded, onChunkLoad, onChunkUnload, onConverted, onEntityCollision, onEntityStanding, onMoved, onNeighborBlockChanged, onPartChanged, onRemoved, onWorldJoin, onWorldSeparate, pos, preRemove, readDesc, readUpdate, scheduledTick, scheduleTick, sendUpdate, tile, writeDescMethods inherited from interface codechicken.multipart.api.part.NormalOcclusionPart
occlusionTest
-
Field Details
-
regulate
public boolean regulate -
signal
public boolean signal -
a_powering
public boolean a_powering -
regulateStack
public net.minecraft.world.item.ItemStack regulateStack -
filters
public net.minecraft.world.item.ItemStack[] filters -
movingItems
-
-
Constructor Details
-
ItemTranslocatorPart
public ItemTranslocatorPart()
-
-
Method Details
-
getType
public codechicken.multipart.api.MultipartType<?> getType()- Specified by:
getTypein interfacecodechicken.multipart.api.part.MultiPart
-
getTType
public int getTType()- Specified by:
getTTypein classTranslocatorPart
-
getItem
public net.minecraft.world.item.ItemStack getItem()- Specified by:
getItemin classTranslocatorPart
-
getIconIndex
public int getIconIndex()- Overrides:
getIconIndexin classTranslocatorPart
-
canStay
public boolean canStay()- Specified by:
canStayin classTranslocatorPart
-
tick
public void tick()- Specified by:
tickin interfacecodechicken.multipart.api.part.TickablePart- Overrides:
tickin classTranslocatorPart
-
activate
public net.minecraft.world.InteractionResult activate(net.minecraft.world.entity.player.Player player, codechicken.multipart.util.PartRayTraceResult hit, net.minecraft.world.item.ItemStack held, net.minecraft.world.InteractionHand hand) - Specified by:
activatein interfacecodechicken.multipart.api.part.MultiPart- Overrides:
activatein classTranslocatorPart
-
stripModifiers
public void stripModifiers()Description copied from class:TranslocatorPartStrips all modifiers from the Translocator and drops the items in world.- Overrides:
stripModifiersin classTranslocatorPart
-
openGui
public void openGui(net.minecraft.world.entity.player.Player player) Description copied from class:TranslocatorPartCalled to open any gui that the translocator wishes to display.- Overrides:
openGuiin classTranslocatorPart- Parameters:
player- The player.
-
setPowering
public void setPowering(boolean b) -
readIncUpdate
public void readIncUpdate(codechicken.lib.data.MCDataInput packet) Description copied from class:TranslocatorPartCalled when our Incremental update packet arrives.- Overrides:
readIncUpdatein classTranslocatorPart- Parameters:
packet- The packet to read data from.
-
save
public void save(net.minecraft.nbt.CompoundTag tag) - Specified by:
savein interfacecodechicken.multipart.api.part.MultiPart- Overrides:
savein classTranslocatorPart
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Specified by:
loadin interfacecodechicken.multipart.api.part.MultiPart- Overrides:
loadin classTranslocatorPart
-
writeFlags
protected int writeFlags()- Overrides:
writeFlagsin classTranslocatorPart
-
readFlags
protected void readFlags(int flags) - Overrides:
readFlagsin classTranslocatorPart
-
strongPowerLevel
public int strongPowerLevel(int side) - Specified by:
strongPowerLevelin interfacecodechicken.multipart.api.part.redstone.RedstonePart
-
weakPowerLevel
public int weakPowerLevel(int side) - Specified by:
weakPowerLevelin interfacecodechicken.multipart.api.part.redstone.RedstonePart
-
canConnectRedstone
public boolean canConnectRedstone(int side) - Specified by:
canConnectRedstonein interfacecodechicken.multipart.api.part.redstone.RedstonePart
-