Class CommandHandlers

java.lang.Object
io.github.icrazyblaze.twitchmod.CommandHandlers

public class CommandHandlers extends Object
This class contains every method used by commands registered in the ChatPicker class.
See Also:
ChatPicker
  • Field Details

    • oresExplode

      public static boolean oresExplode
    • placeBedrockOnBreak

      public static boolean placeBedrockOnBreak
    • burnVillagersOnInteract

      public static boolean burnVillagersOnInteract
    • destroyWorkbenchesOnInteract

      public static boolean destroyWorkbenchesOnInteract
    • messagesList

      public static ArrayList<String> messagesList
    • enableFrenzyMode

      public static boolean enableFrenzyMode
  • Constructor Details

    • CommandHandlers

      public CommandHandlers()
  • Method Details

    • getLootTables

      public static net.minecraft.resources.ResourceLocation[] getLootTables()
    • rollTheDice

      public static void rollTheDice(String sender)
    • giveRandomPotionEffect

      public static void giveRandomPotionEffect()
    • addPotionEffects

      public static void addPotionEffects(net.minecraft.world.effect.MobEffectInstance... effectInstances)
    • setBlock

      public static void setBlock(net.minecraft.core.BlockPos bpos, net.minecraft.world.level.block.state.BlockState state)
    • setOnFire

      public static void setOnFire()
    • setRainAndThunder

      public static void setRainAndThunder()
    • setDifficulty

      public static void setDifficulty(net.minecraft.world.Difficulty difficulty)
    • setTime

      public static void setTime(long time)
    • drainHealth

      public static void drainHealth()
    • setSpawn

      public static void setSpawn()
    • deathTimer

      public static void deathTimer()
    • frenzyTimer

      public static void frenzyTimer()
    • graceTimer

      public static void graceTimer()
    • disableGraceTimer

      public static void disableGraceTimer()
    • disableFrenzyTimer

      public static void disableFrenzyTimer()
    • floorIsLava

      public static void floorIsLava()
    • placeWater

      public static void placeWater()
    • placeSponge

      public static void placeSponge()
    • spawnAnvil

      public static void spawnAnvil()
    • placeCobweb

      public static void placeCobweb()
    • spawnMob

      public static void spawnMob(net.minecraft.world.entity.Entity ent)
    • pigmanScare

      public static void pigmanScare()
    • elderGuardianScare

      public static void elderGuardianScare()
    • playSound

      public static void playSound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch)
    • spawnFireball

      public static void spawnFireball()
    • spawnLightning

      public static void spawnLightning()
    • spawnArmorStand

      public static void spawnArmorStand()
    • spawnMobBehind

      public static void spawnMobBehind(net.minecraft.world.entity.Entity ent)
    • breakBlock

      public static void breakBlock()
    • infestBlock

      public static void infestBlock()
    • surroundPlayer

      public static void surroundPlayer(net.minecraft.world.level.block.state.BlockState block)
    • dropItem

      public static void dropItem()
    • changeDurability

      public static void changeDurability(boolean repairItem)
    • removeRandomItemStack

      public static void removeRandomItemStack()
    • getRandomItemStack

      public static net.minecraft.world.item.ItemStack getRandomItemStack(boolean randomCount)
    • giveAndRemoveRandom

      public static void giveAndRemoveRandom()
    • itemRoulette

      public static void itemRoulette(String sender)
    • shuffleInventory

      public static void shuffleInventory(String sender)
    • renameItem

      public static void renameItem(String name)
    • enchantItem

      public static void enchantItem()
    • curseArmour

      public static void curseArmour()
    • pumpkin

      public static void pumpkin()
    • toggleCrouch

      public static void toggleCrouch()
    • toggleSprint

      public static void toggleSprint()
    • dismount

      public static void dismount()
    • chorusTeleport

      public static void chorusTeleport()
    • showMessagebox

      public static void showMessagebox(String message)
    • startWritingBook

      public static void startWritingBook()
    • createBook

      public static void createBook(List<String> text)
    • placeSign

      public static void placeSign(String message)
    • placeChest

      public static void placeChest()
    • chooseRandomMessage

      public static void chooseRandomMessage()
    • broadcastMessage

      public static void broadcastMessage(net.minecraft.network.chat.MutableComponent message)
      This method sends a message to everyone on a server.
    • explodeOnBreak

      public static void explodeOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event)
    • bedrockOnBreak

      public static void bedrockOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event)
    • villagersDie

      public static void villagersDie(net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteract event)
    • workbenchesBreak

      public static void workbenchesBreak(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event)