public class ProgWidgetBlockRightClick extends ProgWidgetPlace implements IBlockRightClicker, ISidedWidget
IBlockRightClicker.RightClickTypeIBlockOrdered.OrderingIProgWidget.WidgetDifficultyaiManagerALL_SIDES| Constructor and Description |
|---|
ProgWidgetBlockRightClick() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.Direction |
getClickSide() |
IBlockRightClicker.RightClickType |
getClickType() |
boolean[] |
getSides() |
net.minecraft.util.ResourceLocation |
getTexture() |
void |
getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip) |
net.minecraft.entity.ai.goal.Goal |
getWidgetAI(IDroneBase drone,
IProgWidget widget)
Get the AI for this progwidget
|
boolean |
isSneaking() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.network.PacketBuffer buf) |
void |
setClickSide(net.minecraft.util.Direction clickSide) |
void |
setClickType(IBlockRightClicker.RightClickType clickType) |
void |
setSides(boolean[] sides) |
void |
setSneaking(boolean sneaking) |
boolean |
supportsMaxActions() |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tag)
At least do
tag.putString("name", getTypeID().toString()); |
void |
writeToPacket(net.minecraft.network.PacketBuffer buf) |
getColorgetExtraStringInfo, getMaxActions, getOrder, setMaxActions, setOrder, setUseMaxActions, useMaxActionsaddErrors, addVariables, getArea, getArea, getAreaExtents, getCachedAreaList, getCachedAreaSet, getChunkCache, getDifficulty, getEntitiesInArea, getEntitiesInArea, getParameters, getValidEntities, hasStepInput, invalidateAreaCache, isEntityValid, isItemFilterEmpty, isItemValidForFilters, isItemValidForFilters, returnType, setAIManageraddWarnings, canBeRunByComputers, canSetParameter, copy, fromNBT, fromPacket, getConnectedParameters, getHeight, getMaxUV, getOutputWidget, getOutputWidget, getParent, getTextureSize, getType, getTypeID, getWidgetTargetAI, getWidth, getX, getY, hasBlacklist, hasStepOutput, isAvailable, setOutputWidget, setParameter, setParent, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirForSides, getSidesFromDir, isSideSelectedgetEntityFilterPositioncreate, freeToUse, getTranslationKey, isDifficultyOKpublic net.minecraft.util.ResourceLocation getTexture()
getTexture in interface IProgWidgetgetTexture in class ProgWidgetPlacepublic net.minecraft.entity.ai.goal.Goal getWidgetAI(IDroneBase drone, IProgWidget widget)
IProgWidgetgetWidgetAI in interface IProgWidgetgetWidgetAI in class ProgWidgetPlacedrone - the dronewidget - will be 'this' most of the time, but not when controlled externally (e.g. ComputerCraft)public boolean supportsMaxActions()
supportsMaxActions in interface IMaxActionspublic boolean isSneaking()
isSneaking in interface IBlockRightClickerpublic void setSneaking(boolean sneaking)
public IBlockRightClicker.RightClickType getClickType()
getClickType in interface IBlockRightClickerpublic void setClickType(IBlockRightClicker.RightClickType clickType)
public net.minecraft.util.Direction getClickSide()
public void setClickSide(net.minecraft.util.Direction clickSide)
public void getTooltip(java.util.List<net.minecraft.util.text.ITextComponent> curTooltip)
getTooltip in interface IProgWidgetgetTooltip in class ProgWidgetDigAndPlacepublic void writeToNBT(net.minecraft.nbt.CompoundNBT tag)
IProgWidgettag.putString("name", getTypeID().toString());
Note that the base implementation ProgWidget does this.
writeToNBT in interface IProgWidgetwriteToNBT in class ProgWidgetDigAndPlacetag - NBT tag to write topublic void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
readFromNBT in interface IProgWidgetreadFromNBT in class ProgWidgetDigAndPlacepublic void writeToPacket(net.minecraft.network.PacketBuffer buf)
writeToPacket in interface IProgWidgetwriteToPacket in class ProgWidgetDigAndPlacepublic void readFromPacket(net.minecraft.network.PacketBuffer buf)
readFromPacket in interface IProgWidgetreadFromPacket in class ProgWidgetDigAndPlacepublic void setSides(boolean[] sides)
setSides in interface ISidedWidgetpublic boolean[] getSides()
getSides in interface ISidedWidget