net.minecraft.entity.decoration

public class CushionEntity

extends BlockAttachedEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.decoration.Cushion
net.minecraft.class_1_1225
net.minecraft.entity.decoration.CushionEntity

Field summary

Modifier and TypeField
private static final DyeColor
DEFAULT_COLOR
field_1_8512
DEFAULT_COLOR
private static final TrackedData<DyeColor>
DATA_COLOR
field_1_8511
COLOR

Constructor summary

ModifierConstructor
public (EntityType<CushionEntity> type, World level)

Method summary

Modifier and TypeMethod
public DyeColor
getColor()
method_1_7782()
getColor()
public void
setColor(DyeColor color)
method_1_7783(class_1767 arg0)
setColor(DyeColor color)
public boolean
dampensVibrations()
method_33189()
occludeVibrationSignals()
public void
dropItem(ServerLevel level, Entity causedBy)
method_6889(class_3218 arg0, class_1297 arg1)
onBreak(ServerWorld arg0, Entity arg1)
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
protected void
removePassenger(Entity passenger)
method_5793(class_1297 arg0)
removePassenger(Entity arg0)
public ItemStack
getPickResult()
method_31480()
getPickBlockStack()
protected void
tickAtCheckInterval()
method_1_8162()
handleFluidCollisions()
public void
setPos(double x, double y, double z)
method_5814(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
private void
showBreakingParticles()
method_1_7784()
spawnBreakParticles()
public static boolean
wouldSuriveAt(Level level, AABB boundingBox)
method_1_7785(class_1937 arg0, class_238 arg1)
canBePlacedOn(World world, Box cushionBox)
public boolean
survives()
method_6888()
canStayAttached()
protected void
recalculateBoundingBox()
method_6895()
updateAttachmentPosition()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)