Class MinecartCommandBlock.MinecartCommandBase
java.lang.Object
net.minecraft.world.level.BaseCommandBlock
net.minecraft.world.entity.vehicle.MinecartCommandBlock.MinecartCommandBase
- Enclosing class:
MinecartCommandBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.BaseCommandBlock
BaseCommandBlock.CloseableCommandBlockSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCommandSourceStack(CommandSource p_442829_) getLevel()booleanisValid()voidMethods inherited from class net.minecraft.world.level.BaseCommandBlock
getCommand, getCustomName, getLastOutput, getName, getSuccessCount, isTrackOutput, load, performCommand, save, setCommand, setCustomName, setLastOutput, setSuccessCount, setTrackOutput, usedBy
-
Constructor Details
-
MinecartCommandBase
public MinecartCommandBase()
-
-
Method Details
-
getLevel
- Specified by:
getLevelin classBaseCommandBlock
-
onUpdated
public void onUpdated()- Specified by:
onUpdatedin classBaseCommandBlock
-
getPosition
- Specified by:
getPositionin classBaseCommandBlock
-
getMinecart
-
createCommandSourceStack
- Specified by:
createCommandSourceStackin classBaseCommandBlock
-
isValid
public boolean isValid()- Specified by:
isValidin classBaseCommandBlock
-