net.minecraft.world.entity.vehicle

public class MinecartCommandBlock

extends AbstractMinecart

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder

csg
net.minecraft.world.entity.vehicle.MinecartCommandBlock
net.minecraft.class_1697
net.minecraft.entity.vehicle.CommandBlockMinecartEntity
net.minecraft.world.entity.vehicle.EntityMinecartCommandBlock

Field summary

Modifier and TypeField
static final EntityDataAccessor<String>
b
DATA_ID_COMMAND_NAME
field_7743
COMMAND
static final EntityDataAccessor<Component>
c
DATA_ID_LAST_OUTPUT
field_7741
LAST_OUTPUT
private final BaseCommandBlock
d
commandBlock
field_7744
commandExecutor
private static final int
h
ACTIVATION_DELAY
field_30701
EXECUTE_TICK_COOLDOWN
private int
i
lastActivated
field_7742
lastExecuted

Constructor summary

ModifierConstructor
public (EntityType<? extends MinecartCommandBlock> arg0, Level arg1)

Method summary

Modifier and TypeMethod
protected Item
u()
getDropItem()
method_7557()
asItem()
public ItemStack
dJ()
getPickResult()
method_31480()
getPickBlockStack()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public BlockState
w()
getDefaultDisplayBlockState()
method_7517()
getDefaultContainedBlock()
public BaseCommandBlock
v()
getCommandBlock()
method_7567()
getCommandExecutor()
public void
a(int arg0, int arg1, int arg2, boolean arg3)
activateMinecart(int arg0, int arg1, int arg2, boolean arg3)
method_7506(int arg0, int arg1, int arg2, boolean arg3)
onActivatorRail(int arg0, int arg1, int arg2, boolean arg3)
public InteractionResult
a(cpx arg0, bti arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
public void
a(alc<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public boolean
cW()
onlyOpCanSetNbt()
method_5833()
entityDataRequiresOperator()